From c5bd03c1c31830e027ff75134ad80f5e2a8caf84 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 22 Jul 2021 11:34:27 +0200 Subject: crusader: Fix bug in Jihad selection and display. Enemy of null is null! --- ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 22cbf08..41fe99e 100644 --- a/ui.js +++ b/ui.js @@ -668,7 +668,7 @@ function update_battle() { class_name += " selected"; if (block === game.battle.halfhit) class_name += " halfhit"; - if (game.battle.jihad === block_owner(block)) + if (game.jihad === game.battle.town && block_owner(block) === game.p1) class_name += " jihad"; if (game.battle.sallying.includes(block)) -- cgit v1.2.3