Skip to content

Commit

Permalink
Fix error with pump where it doesn't fetch latest version of card
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Sep 4, 2019
1 parent f4582b0 commit 79e0d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/game/core/ice.clj
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
"Increase a breaker's strength by n for the given duration of :encounter, :all-run or :all-turn"
([state side card n] (pump state side card n :encounter))
([state side card n duration]
(update! state side (update-in card [:pump duration] (fnil #(+ % n) 0)))
(update! state side (update-in (get-card state card) [:pump duration] (fnil #(+ % n) 0)))
(update-breaker-strength state side (get-card state card))
(trigger-event state side :pump-breaker n card)))

Expand Down

0 comments on commit 79e0d74

Please sign in to comment.