mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/AzjolNerub: Missing nullptr check in Hadronox. Closes #21258.
This commit is contained in:
@@ -360,7 +360,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