Scripts/AzjolNerub: Missing nullptr check in Hadronox. Closes #21258.

This commit is contained in:
Treeston authored and Aokromes committed 2018-01-21 12:55:37 +01:00
1 parent ae8616bd52
commit 7997bebf9e
1 file changed
+1 -1
@@ -366,7 +366,7 @@ public:
// Safeguard to prevent Hadronox dying to NPCs
void DamageTaken(Unit* who, uint32& damage) override
{
if (!who->IsControlledByPlayer() && me->HealthBelowPct(70))
if ((!who || !who->IsControlledByPlayer()) && me->HealthBelowPct(70))
{
if (me->HealthBelowPctDamaged(5, damage))
damage = 0;