mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Scripts/Icecrown Citadel: Fixed possible crash in npc_darnavanAI
Closes #3188
This commit is contained in:
@@ -891,7 +891,7 @@ class npc_darnavan : public CreatureScript
|
||||
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||
return;
|
||||
|
||||
if (_canShatter && me->getVictim()->IsImmunedToDamage(SPELL_SCHOOL_MASK_NORMAL))
|
||||
if (_canShatter && me->getVictim() && me->getVictim()->IsImmunedToDamage(SPELL_SCHOOL_MASK_NORMAL))
|
||||
{
|
||||
DoCastVictim(SPELL_SHATTERING_THROW);
|
||||
_canShatter = false;
|
||||
|
||||
Reference in New Issue
Block a user