summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-28 01:00:47 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit5da1482d5a71aa094eb90bb86a902bdd380e9227 (patch)
tree5fec59b40951dc254316082e38c49ee970062b37 /play.js
parentfe267c8322abf4dd4b4e11a3f879fb1e0f32aa90 (diff)
downloadnevsky-5da1482d5a71aa094eb90bb86a902bdd380e9227.tar.gz
Flip flop.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/play.js b/play.js
index 4d93876..b300233 100644
--- a/play.js
+++ b/play.js
@@ -1425,10 +1425,8 @@ function on_update() {
ui.battle_panel.classList.remove("hide")
ui.battle_header.textContent = "~ Battle at " + data.locales[view.battle.where].name + " ~"
if (view.battle.attacker === player) {
- ui.battle_mat.className = "attacker"
ui.battle_grid.className = "attacker"
} else {
- ui.battle_mat.className = "defender"
ui.battle_grid.className = "defender"
}
update_battle()