1
0

Fix #38 - reset game.turn.free on trade entry

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-06-20 12:39:52 -07:00
parent 4795baaf56
commit 7babaee861

View File

@ -1889,6 +1889,10 @@ const trade = (game, session, action, offer) => {
if (game.turn.name !== name) {
return `You cannot start trading negotiations when it is not your turn.`
}
/* Clear any free gives if the player begins trading */
if (game.turn.free) {
delete game.turn.free;
}
game.turn.actions = [ 'trade' ];
game.turn.limits = {};
for (let key in game.players) {