mirror of
https://github.com/minetest-mods/realchess.git
synced 2024-11-20 06:23:48 +01:00
Fix black pawns killing white pieces.
This commit is contained in:
parent
83c7555e87
commit
b71d6100c4
4
init.lua
4
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user