Scripts/Magtheridon Lair: Fixed a case when channelers get hit kill and not start fight

It's needed for cataclysm+
This commit is contained in:
Keader authored and Aokromes committed 2018-05-29 16:40:56 +02:00
1 parent fdd6bbc1cf
commit 10bf058436
1 file changed
+4
@@ -345,6 +345,10 @@ class npc_hellfire_channeler : public CreatureScript
void JustDied(Unit* /*killer*/) override
{
DoCastAOE(SPELL_SOUL_TRANSFER);
// Channelers killed by "Hit Kill" need trigger combat event too. It's needed for Cata+
if (Creature* magtheridon = _instance->GetCreature(DATA_MAGTHERIDON))
magtheridon->AI()->DoAction(ACTION_START_CHANNELERS_EVENT);
}
void JustSummoned(Creature* summon) override