Show hints off-turn.
This commit is contained in:
parent
724d543951
commit
74a1036836
@ -86,7 +86,7 @@ const INTERFACE = {
|
||||
for(let movement of movements) {
|
||||
if(movement.valid) {
|
||||
// Show valid/threat hints if piece belongs to player and is player turn.
|
||||
if(INTERFACE_DATA.player == 2 || (player == INTERFACE_DATA.player && (GAME_DATA.turn & 1) == player)) {
|
||||
if(INTERFACE_DATA.player == 2 || player == INTERFACE_DATA.player) { // && (GAME_DATA.turn & 1) == player
|
||||
if(GAME_DATA.board.tiles[movement.tile].threaten[+(!player)] > 0) {
|
||||
INTERFACE_DATA.board_state[movement.tile][zone] = INTERFACE.TileStatus.Threat;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user