Decompile fn_07447 (CShowEffect::Close)

Batch #17393 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_07447 CShowEffect::Close: logic confirmed by peer review

Peer-reviewed-by: eAthena, cremane
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-11 22:22:27 +00:00
commit 313d229f03

View file

@ -75,11 +75,12 @@ void CShowEffect::Close() {
const std::uint32_t actorId = this->actor;
CRenderObject* target = FindActor(actorId);
for (const auto& entry : this->effects) {
for (auto it = this->effects.begin(); it != this->effects.end(); ++it) {
if (target) {
target->SendMsg(nullptr, AM_DELETE_TAGGED_EFFECT, 0, entry.first, entry.first >> 31, entry.second, 0, 0, 0, 0, 0, 0, 0, 0, 0);
} else if (g_effectMgr->HasAllocator(entry.second)) {
g_effectMgr->Retire(actorId, entry.first, entry.second);
target->SendMsg(nullptr, AM_DELETE_TAGGED_EFFECT, 0, static_cast<int>(static_cast<std::int64_t>(it->first)),
static_cast<int>(static_cast<std::int64_t>(it->first) >> 32), it->second, 0, 0, 0, 0, 0, 0, 0, 0, 0);
} else if (g_effectMgr->HasAllocator(it->second)) {
g_effectMgr->Retire(actorId, it->first, it->second);
}
}