From aceeb996abe088f7e00d057e9024680e69111adf Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 09:48:52 +0000 Subject: [PATCH] Decompile fn_12711 (UIShortCutWnd::OnMouseHover) Batch #15528 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12711 UIShortCutWnd::OnMouseHover: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Shortcuts/ShortcutTooltip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/UI/Shortcuts/ShortcutTooltip.cpp b/Source/UI/Shortcuts/ShortcutTooltip.cpp index 3948a8dff..d17e56e5a 100644 --- a/Source/UI/Shortcuts/ShortcutTooltip.cpp +++ b/Source/UI/Shortcuts/ShortcutTooltip.cpp @@ -2,6 +2,7 @@ #include "Contents/Hotkeys/HotkeyInfo.h" #include "Contents/MessageTable.h" #include "Contents/Skills/ClientSkills.h" +#include "Contents/Skills/PlayerSkillBundle.h" #include "UI/Shortcuts/UIShortCutWnd.h" #include "UI/Buttons/UIButton.h" #include "UI/Window/UIWindow.h" @@ -79,7 +80,7 @@ void UIShortCutWnd::OnMouseHover(int x, int y) { text = shortcut; } else { int level = slot.value; - if ((skill.id == 6579 || skill.id == 6580) && skill.level < level) { + if (IsIndexedSkill(static_cast(skill.id)) && skill.level < level) { level = skill.level; }