summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files 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() {