Core/Creatures: Fixed crash when guards get killed by periodic auras whose caster is offline or despawned
Port From (https://github.com/TrinityCore/TrinityCore/commit/e539de68e10a64b0f0a0619eb5213ab5315b01c9)
This commit is contained in:
@@ -63,9 +63,12 @@ namespace Game.AI
|
|||||||
|
|
||||||
public override void JustDied(Unit killer)
|
public override void JustDied(Unit killer)
|
||||||
{
|
{
|
||||||
Player player = killer.GetCharmerOrOwnerPlayerOrPlayerItself();
|
if (killer != null)
|
||||||
if (player != null)
|
{
|
||||||
me.SendZoneUnderAttackMessage(player);
|
Player player = killer.GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||||
|
if (player != null)
|
||||||
|
me.SendZoneUnderAttackMessage(player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user