logic
This commit is contained in:
parent
093ef4caf2
commit
a332444817
2
board.go
2
board.go
@ -93,5 +93,5 @@ func (b *Board) IsTerrain(x, y int) (bool, error) {
|
|||||||
if !b.validatePoint(x, y) {
|
if !b.validatePoint(x, y) {
|
||||||
return false, errors.New("River check invalid location")
|
return false, errors.New("River check invalid location")
|
||||||
}
|
}
|
||||||
return b.board[y][x].passable, nil
|
return !b.board[y][x].passable, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user