fix(Scripts/VioletHold): Fix the issue where no waves occur after the 7th wave wipes out the players (#25433)
This commit is contained in:
@@ -166,6 +166,7 @@ public:
|
|||||||
case DATA_CYANIGOSA:
|
case DATA_CYANIGOSA:
|
||||||
if (state == DONE)
|
if (state == DONE)
|
||||||
{
|
{
|
||||||
|
_events.Reset();
|
||||||
_encounterStatus = DONE;
|
_encounterStatus = DONE;
|
||||||
HandleGameObject(DATA_MAIN_DOOR, true);
|
HandleGameObject(DATA_MAIN_DOOR, true);
|
||||||
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
|
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
|
||||||
@@ -556,7 +557,12 @@ public:
|
|||||||
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
|
DoUpdateWorldState(WORLD_STATE_VIOLET_HOLD_SHOW, 0);
|
||||||
_encounterStatus = NOT_STARTED;
|
_encounterStatus = NOT_STARTED;
|
||||||
_gateHealth = 100;
|
_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;
|
_defensesUsed = false;
|
||||||
if (GetBossState(DATA_CYANIGOSA) == DONE)
|
if (GetBossState(DATA_CYANIGOSA) == DONE)
|
||||||
_encounterStatus = DONE;
|
_encounterStatus = DONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user