Decompile fn_03097 (EffectResourceSwitcher::OnProcess)

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

- fn_03097 EffectResourceSwitcher::OnProcess: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, Eofim
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 01:34:09 +00:00
commit 8abf5bbb13

View file

@ -155,7 +155,8 @@ void EffectResourceSwitcher::OnProcess() {
CEZ2STREffectEx* previous = this->effect;
this->sourceName = this->targetName;
this->targetName = "";
this->effect = static_cast<CEZ2STREffectEx*>(g_effectMgr->Spawn(0, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), this->spawnPosition, 0, -1, 0, 0));
EffectLists* effectMgr = g_effectMgr;
this->effect = static_cast<CEZ2STREffectEx*>(effectMgr->Spawn(0, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), this->spawnPosition, 0, -1, 0, 0));
this->active = 0;
if (previous) {
previous->EndLoop(0);