fix(Scripts/Karazhan): Remove redundant Garrote cast and despawn gues… (#17152)

fix(Scripts/Karazhan): Remove redundant Garrote cast and despawn guests on evade
This commit is contained in:
Skjalf
2023-09-04 21:15:18 -03:00
committed by GitHub
parent cdc06e1703
commit 0c90bfcf70
@@ -156,7 +156,6 @@ struct boss_moroes : public BossAI
scheduler.Schedule(5s, 7s, [this](TaskContext) scheduler.Schedule(5s, 7s, [this](TaskContext)
{ {
me->SetImmuneToAll(false); me->SetImmuneToAll(false);
DoCastRandomTarget(SPELL_GARROTE, 0, 100.0f, true, true);
DoCastSelf(SPELL_VANISH_TELEPORT); DoCastSelf(SPELL_VANISH_TELEPORT);
_vanished = false; _vanished = false;
}); });
@@ -206,6 +205,7 @@ struct boss_moroes : public BossAI
guestList.push_back(summon); guestList.push_back(summon);
} }
} }
return Acore::Containers::SelectRandomContainerElement(guestList); return Acore::Containers::SelectRandomContainerElement(guestList);
} }
@@ -234,7 +234,7 @@ struct boss_moroes : public BossAI
EnterEvadeMode(); EnterEvadeMode();
summons.DoForAllSummons([](WorldObject* summon) summons.DoForAllSummons([](WorldObject* summon)
{ {
summon->ToCreature()->AI()->EnterEvadeMode(); summon->ToCreature()->DespawnOnEvade(5s);
}); });
return; return;
} }