mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix reloading interacting with objects from old state
This commit is contained in:
@@ -620,6 +620,9 @@ public abstract class GameState {
|
|||||||
|
|
||||||
game.getAction().checkStateEffects(true); //ensure state based effects and triggers are updated
|
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
|
// 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).
|
// pre-setting negative life (e.g. PS_NEO4).
|
||||||
for (int i = 0; i < playerStates.size(); i++) {
|
for (int i = 0; i < playerStates.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user