Initial placement with volcano off was broken; fixed
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
22be30f44b
commit
784ea1ecee
@ -1597,9 +1597,13 @@ const getValidCorners = (game, color, type) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (game.state !== 'initial-placement'
|
/* During initial placement, if volcano is enabled, do not allow
|
||||||
|| (isRuleEnabled(game, 'volcano')
|
* placement on a corner connected to the volcano (robber starts
|
||||||
&& layout.tiles[game.robber].corners.indexOf(cornerIndex) === -1)) {
|
* on the volcano) */
|
||||||
|
if (!(game.state === 'initial-placement'
|
||||||
|
&& isRuleEnabled(game, 'volcano')
|
||||||
|
&& layout.tiles[game.robber].corners.indexOf(cornerIndex) !== -1
|
||||||
|
)) {
|
||||||
limits.push(cornerIndex);
|
limits.push(cornerIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user