mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
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:
@@ -274,6 +274,7 @@ public:
|
||||
dragonsCount++;
|
||||
me->AddLootMode(1 << dragonsCount);
|
||||
|
||||
cr->SetHealth(cr->GetMaxHealth());
|
||||
switch(DATA_TENEBRON+i)
|
||||
{
|
||||
case DATA_TENEBRON:
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user