Core/Creature: Added missing nullcheck
Port From (https://github.com/TrinityCore/TrinityCore/commit/209a36424eb9affc2ac3af2682fc9169a37d494f)
This commit is contained in:
@@ -1584,6 +1584,9 @@ namespace Game.Entities
|
||||
if (GetSparringHealthPct() == 0)
|
||||
return damage;
|
||||
|
||||
if (attacker == null)
|
||||
return damage;
|
||||
|
||||
if (!attacker.IsCreature() || attacker.IsCharmedOwnedByPlayerOrPlayer() || IsCharmedOwnedByPlayerOrPlayer())
|
||||
return damage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user