mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/Naxxramas): Remove Sapphiron encounter boss requirements (#15048)
This commit is contained in:
@@ -641,27 +641,6 @@ public:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AreAllWingsCleared() const
|
|
||||||
{
|
|
||||||
return (GetBossState(BOSS_MAEXXNA) == DONE) && (GetBossState(BOSS_LOATHEB) == DONE) && (GetBossState(BOSS_THADDIUS) == DONE) && (GetBossState(BOSS_HORSEMAN) == DONE);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CheckRequiredBosses(uint32 bossId, Player const* /* player */) const override
|
|
||||||
{
|
|
||||||
switch (bossId)
|
|
||||||
{
|
|
||||||
case BOSS_SAPPHIRON:
|
|
||||||
if (!AreAllWingsCleared())
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SetBossState(uint32 bossId, EncounterState state) override
|
bool SetBossState(uint32 bossId, EncounterState state) override
|
||||||
{
|
{
|
||||||
// pull all the trash if not killed
|
// pull all the trash if not killed
|
||||||
|
|||||||
Reference in New Issue
Block a user