Scripts: Implemented virtual function DoCastSpellOnPlayers (self-explanatory) and CheckRequiredBosses checking states of other bosses before allowing combat with selected one

Scripts/Icecrown Citadel: Added checks to prevent skipping bosses
This commit is contained in:
Shauren
2011-01-01 23:37:35 +01:00
parent ce76f10bc8
commit 039d87bbc9
14 changed files with 222 additions and 59 deletions

View File

@@ -545,7 +545,15 @@ void BossAI::_EnterCombat()
me->setActive(true);
DoZoneInCombat();
if (instance)
{
// bosses do not respawn, check only on enter combat
if (!instance->CheckRequiredBosses(bossId))
{
EnterEvadeMode();
return;
}
instance->SetBossState(bossId, IN_PROGRESS);
}
}
void BossAI::TeleportCheaters()