fix(Scripts/ObsidianSanctum): Fix Tenebron respawning (#17576)
fix(Scripts/ObsidianSanctum): Fix Shadron respawning
This commit is contained in:
parent
d569f91604
commit
41dba1affb
2 changed files with 1 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue