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))
|
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||||
return;
|
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);
|
DoCastVictim(SPELL_SHATTERING_THROW);
|
||||||
_canShatter = false;
|
_canShatter = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user