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++;
|
dragonsCount++;
|
||||||
me->AddLootMode(1 << dragonsCount);
|
me->AddLootMode(1 << dragonsCount);
|
||||||
|
|
||||||
|
cr->SetHealth(cr->GetMaxHealth());
|
||||||
switch(DATA_TENEBRON+i)
|
switch(DATA_TENEBRON+i)
|
||||||
{
|
{
|
||||||
case DATA_TENEBRON:
|
case DATA_TENEBRON:
|
||||||
|
|||||||
+8
@@ -40,6 +40,14 @@ public:
|
|||||||
memset(&Encounters, 0, sizeof(Encounters));
|
memset(&Encounters, 0, sizeof(Encounters));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool IsEncounterInProgress() const
|
||||||
|
{
|
||||||
|
if (Encounters[BOSS_SARTHARION_EVENT] == IN_PROGRESS)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void OnCreatureCreate(Creature* pCreature)
|
void OnCreatureCreate(Creature* pCreature)
|
||||||
{
|
{
|
||||||
switch(pCreature->GetEntry())
|
switch(pCreature->GetEntry())
|
||||||
|
|||||||
Reference in New Issue
Block a user