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:
parent
728ebe5f8c
commit
76bcc6d91b
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue