fix BOSS_HORSEMAN Load

This commit is contained in:
Alvin Zhu
2023-04-05 13:00:09 +08:00
parent 0e626d53ce
commit dc1f2d8cf9

View File

@@ -724,6 +724,16 @@ public:
return true; return true;
} }
void Load(const char* data) override
{
_horsemanLoadDoneState = true;
InstanceScript::Load(data);
if (GetBossState(BOSS_HORSEMAN) != DONE)
{
_horsemanLoadDoneState = false;
}
}
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
@@ -743,9 +753,9 @@ public:
} }
// Horseman handling // Horseman handling
if (bossId == BOSS_HORSEMAN && !_horsemanLoadDoneState) if (bossId == BOSS_HORSEMAN)
{ {
if (state == DONE) if (state == DONE && !_horsemanLoadDoneState)
{ {
_horsemanTimer++; _horsemanTimer++;
_horsemanKilled++; _horsemanKilled++;