fix(Core/Spells): Fix quest 11893 credit handler resolving totem owner (#25310)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-05-05 02:48:24 -05:00
committed by GitHub
parent a182c86064
commit 37f6ac29f8
@@ -5390,10 +5390,10 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
{ {
if (target->isDead() && GetBase() && target->IsCreature() && target->GetEntry() == 24601) if (target->isDead() && GetBase() && target->IsCreature() && target->GetEntry() == 24601)
{ {
auto caster2 = GetBase()->GetCaster(); if (Unit* caster2 = GetBase()->GetCaster())
if (caster2 && caster2->IsPlayer())
{ {
caster2->ToPlayer()->KilledMonsterCredit(25987); if (Player* player = caster2->GetCharmerOrOwnerPlayerOrPlayerItself())
player->KilledMonsterCredit(25987);
} }
} }
return; return;