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).
This commit is contained in:
parent
6ebf2cf29b
commit
e7d1185fd4
1 changed files with 3 additions and 2 deletions
|
|
@ -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<std::int16_t>(id)), 0);
|
||||
const std::uint16_t skill = static_cast<std::uint16_t>(id);
|
||||
if (g_session.m_automaticSkills.Contains(skill)) {
|
||||
g_session.m_options.Values()[AutomaticSkills::CancelOption(static_cast<std::int16_t>(skill))] = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue