From 37f6ac29f822fa74ace2a3735e6b145f8ae5be4f Mon Sep 17 00:00:00 2001 From: blinkysc <37940565+blinkysc@users.noreply.github.com> Date: Tue, 5 May 2026 02:48:24 -0500 Subject: [PATCH] fix(Core/Spells): Fix quest 11893 credit handler resolving totem owner (#25310) Co-authored-by: blinkysc --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 964fa9c06b..4817aa222d 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -5390,10 +5390,10 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool { if (target->isDead() && GetBase() && target->IsCreature() && target->GetEntry() == 24601) { - auto caster2 = GetBase()->GetCaster(); - if (caster2 && caster2->IsPlayer()) + if (Unit* caster2 = GetBase()->GetCaster()) { - caster2->ToPlayer()->KilledMonsterCredit(25987); + if (Player* player = caster2->GetCharmerOrOwnerPlayerOrPlayerItself()) + player->KilledMonsterCredit(25987); } } return;