Core/Script: Missing check on medivh script, fixed crash

This commit is contained in:
Yehonal
2016-09-16 15:57:30 +02:00
parent b618027b3b
commit 8cee0fe498

View File

@@ -113,7 +113,7 @@ public:
events.Reset();
me->CastSpell(me, SPELL_MANA_SHIELD, true);
if (instance->GetData(TYPE_AEONUS) != DONE)
if (instance && instance->GetData(TYPE_AEONUS) != DONE)
me->CastSpell(me, SPELL_MEDIVH_CHANNEL, false);
}