diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2024-01-17 15:25:27 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2024-01-17 19:55:11 +0100 |
commit | 138b55edd8e0d4d4c36313a22ce79f5435adcec4 (patch) | |
tree | 4578f339198a48361be83f74b8893d327144134c /rules.js | |
parent | d4774e63860985a92ed8b2d449864b4647d983f6 (diff) | |
download | plantagenet-138b55edd8e0d4d4c36313a22ce79f5435adcec4.tar.gz |
Fix set_active_enemy
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -709,12 +709,9 @@ function set_active(new_active) { } } -function set_active(new_active) { - if (game.active !== new_active) { - clear_undo() // here - game.active = new_active - update_aliases() - } +function set_active_enemy() { + clear_undo() + set_active(enemy_player()) } function enemy_player() { |