Skip to content

Commit

Permalink
Merge pull request #4483 from NoahTheDuke/nb/pump-fix
Browse files Browse the repository at this point in the history
Fix error with pump where it doesn't fetch latest version of card
  • Loading branch information
NoahTheDuke authored Sep 5, 2019
2 parents 5fc3e3e + 79e0d74 commit e73de65
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 e73de65

Please sign in to comment.