Fix black pawns killing white pieces.

This commit is contained in:
Marcin 2015-10-25 16:57:01 +01:00
parent 83c7555e87
commit b71d6100c4

@ -162,6 +162,10 @@ function realchess.move(pos, from_list, from_index, to_list, to_index, count, pl
return 0 return 0
end end
elseif from_x - 1 == to_x or from_x + 1 == to_x then elseif from_x - 1 == to_x or from_x + 1 == to_x then
if not pieceTo:find("white") then
return 0
end
else
return 0 return 0
end end
elseif from_y + 2 == to_y then elseif from_y + 2 == to_y then