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:
parent
a182c86064
commit
37f6ac29f8
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue