fix(Scripts/VioletHold): Fix the issue where no waves occur after the 7th wave wipes out the players (#25433)
This commit is contained in:
parent
06e3ef3ae8
commit
eff2cac905
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue