Fixed boss evade and doors closed by cr4st.

Should close #6377 and #15239

(cherry picked from commit e430f3f61a)
This commit is contained in:
David Carlos Manuelda
2015-08-11 05:25:53 +02:00
committed by Shauren
parent f56bb2e0a6
commit 8dc10022a6

View File

@@ -106,7 +106,8 @@ public:
void AttackStart(Unit* who) override
{
//can't use entercombat(), boss' dmg aura sets near players in combat, before entering the room's door
instance->SetData(TYPE_BARON, IN_PROGRESS);
if (instance && instance->GetData(TYPE_BARON) == NOT_STARTED)
instance->SetData(TYPE_BARON, IN_PROGRESS);
ScriptedAI::AttackStart(who);
}