fix(Scripts/VioletHold): Fix the issue where no waves occur after the 7th wave wipes out the players (#25433)

This commit is contained in:
天鹭 2026-04-12 18:34:17 +08:00 committed by GitHub
parent 06e3ef3ae8
commit eff2cac905
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,6 +166,7 @@ public:
case DATA_CYANIGOSA:
if (state == DONE)
{
_events.Reset();
_encounterStatus = DONE;
HandleGameObject(DATA_MAIN_DOOR, true);
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
@ -556,7 +557,12 @@ public:
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
_encounterStatus = NOT_STARTED;
_gateHealth = 100;
_waveCount = 0;
if (GetBossState(DATA_2ND_BOSS) == DONE)
_waveCount = 12;
else if (GetBossState(DATA_1ST_BOSS) == DONE)
_waveCount = 6;
else
_waveCount = 0;
_defensesUsed = false;
if (GetBossState(DATA_CYANIGOSA) == DONE)
_encounterStatus = DONE;