fix(Core/Boss Script): Obsidian Sanctum Bugs Fixed (Cant enter instance while boss in combat , fix HardMode problem with damage drakes before starting boss) (#2130)

This commit is contained in:
ArashGorge
2019-08-13 12:44:25 +04:30
committed by Stoabrogga
parent 2f9b700a3a
commit 6fbeda297b
2 changed files with 9 additions and 0 deletions

View File

@@ -274,6 +274,7 @@ public:
dragonsCount++;
me->AddLootMode(1 << dragonsCount);
cr->SetHealth(cr->GetMaxHealth());
switch(DATA_TENEBRON+i)
{
case DATA_TENEBRON:

View File

@@ -40,6 +40,14 @@ public:
memset(&Encounters, 0, sizeof(Encounters));
};
bool IsEncounterInProgress() const
{
if (Encounters[BOSS_SARTHARION_EVENT] == IN_PROGRESS)
return true;
return false;
}
void OnCreatureCreate(Creature* pCreature)
{
switch(pCreature->GetEntry())