summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 35f6a2e..67773ce 100644
--- a/rules.js
+++ b/rules.js
@@ -6783,11 +6783,13 @@ states.reposition_storm = {
log(`Swapped in L${lord}.`)
set_delete(game.battle.reserves, lord)
if (game.active === game.battle.attacker) {
- set_add(game.battle.reserves, game.battle.array[A2])
+ if (game.battle.array[A2] !== NOBODY)
+ set_add(game.battle.reserves, game.battle.array[A2])
game.battle.array[A2] = lord
} else {
- set_add(game.battle.reserves, game.battle.array[D2])
- game.battle.array[A2] = lord
+ if (game.battle.array[D2] !== NOBODY)
+ set_add(game.battle.reserves, game.battle.array[D2])
+ game.battle.array[D2] = lord
}
end_reposition_storm()
},