Decompile fn_22192 (CGameMode::UpdateActorSpiritCount)

Batch #17966 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_22192 CGameMode::UpdateActorSpiritCount: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, KWDev
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-12 10:44:21 +00:00
commit 76bcc6d91b

View file

@ -4001,11 +4001,9 @@ void CGameMode::UpdateActorSpiritCount(std::uint32_t aid, std::int16_t count) {
if (abyss) {
static_cast<CFromTheAbyssEffect*>(abyss)->SetLevel(count);
}
for (auto it = g_activeSkillEffects.begin(); it != g_activeSkillEffects.end(); ++it) {
if (it->id == 1244) {
it->value1 = count;
break;
}
auto it = std::find_if(g_activeSkillEffects.begin(), g_activeSkillEffects.end(), [](const ActiveSkillEffect& effect) { return effect.id == 1244; });
if (it != g_activeSkillEffects.end()) {
it->value1 = count;
}
return;
}