From 138b55edd8e0d4d4c36313a22ce79f5435adcec4 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:25:27 +0100 Subject: Fix set_active_enemy --- rules.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index eed8d54..4e2c66f 100644 --- a/rules.js +++ b/rules.js @@ -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() { -- cgit v1.2.3