Commit c4537c7
committed
fix: don't let a despawned final-battle guardian consume its wave
CellWatch counts a final-battle wave as spent when the guardian
spawns, and stops spawning entirely once wFinal reaches 3. If that
guardian despawns without sinking — wrecking teleports the player
beyond the 120 px despawn range — no wave ever spawns again and the
game becomes unwinnable. Give the wave back on despawn.
Found by a full end-to-end campaign playthrough: wrecked during the
finale, and the victory state could no longer be reached.1 parent a9f774d commit c4537c7
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
698 | 711 | | |
699 | 712 | | |
700 | 713 | | |
| |||
0 commit comments