mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/ObsidianSanctum): Fix Tenebron respawning (#17576)
fix(Scripts/ObsidianSanctum): Fix Shadron respawning
This commit is contained in:
@@ -874,7 +874,7 @@ struct boss_sartharion_dragonAI : public BossAI
|
||||
Talk(SAY_TENEBRON_DEATH);
|
||||
if (!isCalledBySartharion || instance->GetBossState(DATA_SARTHARION) != IN_PROGRESS)
|
||||
{
|
||||
instance->SetBossState(DATA_SHADRON, DONE);
|
||||
instance->SetBossState(DATA_TENEBRON, DONE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -46,17 +46,6 @@ public:
|
||||
LoadBossBoundaries(boundaries);
|
||||
}
|
||||
|
||||
bool IsEncounterInProgress() const override
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTERS; ++i)
|
||||
{
|
||||
if (GetBossState(i) == IN_PROGRESS)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* pCreature) override
|
||||
{
|
||||
switch(pCreature->GetEntry())
|
||||
@@ -150,20 +139,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SetBossState(uint32 type, EncounterState state) override
|
||||
{
|
||||
if (InstanceScript::SetBossState(type, state))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (state == DONE)
|
||||
{
|
||||
SaveToDB();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void DoAction(int32 action) override
|
||||
{
|
||||
switch (action)
|
||||
|
||||
Reference in New Issue
Block a user