From e7d1185fd4e1dcacbd2238209af42e8c74457ca6 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 10:46:20 +0000 Subject: [PATCH] Decompile fn_21406 (AutomaticSkills::Complete) Batch #15854 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_21406 AutomaticSkills::Complete: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/AutomaticSkills.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Skills/AutomaticSkills.cpp b/Source/Contents/Skills/AutomaticSkills.cpp index 800781709..bd8103fc7 100644 --- a/Source/Contents/Skills/AutomaticSkills.cpp +++ b/Source/Contents/Skills/AutomaticSkills.cpp @@ -101,7 +101,8 @@ void AutomaticSkills::Use(std::int16_t id, std::int16_t level, std::uint32_t tar // OFFSET: 0x00CEFD20 // FUNCTION: fn_21406 void AutomaticSkills::Complete(int id) { - if (this->Contains(id)) { - g_session.m_options.Set(AutomaticSkills::CancelOption(static_cast(id)), 0); + const std::uint16_t skill = static_cast(id); + if (g_session.m_automaticSkills.Contains(skill)) { + g_session.m_options.Values()[AutomaticSkills::CancelOption(static_cast(skill))] = 0; } }