mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Scripts/AzjolNerub: Missing nullptr check in Hadronox. Closes #21258.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user