Scripts/Icecrown Citadel: Remove unselectable and not attackable flags from Professor Putricide when both Festergut and Rotface are killed

This commit is contained in:
Shauren
2011-03-06 17:14:27 +01:00
parent 0f91728fdd
commit 13acb0e4f9

View File

@@ -242,6 +242,16 @@ class boss_professor_putricide : public CreatureScript
instance->SetBossState(DATA_PROFESSOR_PUTRICIDE, IN_PROGRESS);
}
void EnterEvadeMode()
{
BossAI::EnterEvadeMode();
if (instance->GetBossState(DATA_ROTFACE) == DONE && instance->GetBossState(DATA_FESTERGUT) == DONE)
{
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
}
void JustReachedHome()
{
_JustReachedHome();