Fix reloading interacting with objects from old state

This commit is contained in:
tool4EvEr
2023-01-17 10:51:55 +01:00
parent 86c814af96
commit 444a5629a8

View File

@@ -620,6 +620,9 @@ public abstract class GameState {
game.getAction().checkStateEffects(true); //ensure state based effects and triggers are updated
// prevent interactions with objects from old state
game.copyLastState();
// Set negative or zero life after state effects if need be, important for some puzzles that rely on
// pre-setting negative life (e.g. PS_NEO4).
for (int i = 0; i < playerStates.size(); i++) {