summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index e15b999..fcf2196 100644
--- a/ui.js
+++ b/ui.js
@@ -122,8 +122,13 @@ function block_name(who) {
}
function block_owner(who) {
- if (who === REBEL)
- return BLOCKS[game.pretender].owner;
+ if (who === REBEL) {
+ if (game.pretender)
+ return BLOCKS[game.pretender].owner;
+ if (game.king)
+ return ENEMY[BLOCKS[game.king].owner];
+ return YORK;
+ }
return BLOCKS[who].owner;
}