From d62554ed2e2309126e42d5db87eddf50ce11aba0 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 13 Dec 2018 19:25:48 +0100
Subject: [PATCH] Bug fix in Ultima

---
 public/javascripts/variants/Ultima.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/javascripts/variants/Ultima.js b/public/javascripts/variants/Ultima.js
index 6f44e5c0..229910c2 100644
--- a/public/javascripts/variants/Ultima.js
+++ b/public/javascripts/variants/Ultima.js
@@ -445,6 +445,7 @@ class UltimaRules extends ChessRules
 				for (let j=0; j<sizeY; j++)
 				{
 					if (this.board[i][j] != VariantRules.EMPTY
+						&& colors.includes(this.getColor(i,j))
 						&& this.getPiece(i,j) == VariantRules.ROOK)
 					{
 						if (this.isImmobilized([i,j]))
-- 
2.44.0