]> Skullheadx's Git Forge - monopoly-web.git/commitdiff
dice to event stack
authorSkullheadx <admonty1@protonmail.com>
Sun, 7 Jun 2026 01:13:57 +0000 (21:13 -0400)
committerSkullheadx <admonty1@protonmail.com>
Sun, 7 Jun 2026 01:13:57 +0000 (21:13 -0400)
game/game.go

index 84cb7a1929bbffcc7e857b487b0762455339dee4..51d10bffeae3cc3448513d54114ecc3933177b70 100644 (file)
@@ -156,7 +156,10 @@ func (ctx *Context) RollDice() {
        if diceRoll1 == diceRoll2 {
                ctx.Turn.RolledDoubles = true
                ctx.Turn.DiceRollsRemaining++
+
                ctx.RemovePlayerFromJail(ctx.Turn.Current)
+
+               ctx.Turn.EventStack = append(ctx.Turn.EventStack, EventRollDice)
        }
 
        if ctx.Turn.NumDiceRolled >= 3 {