From 79e0d741365fd005c3d60412eb3ea97e7643f2ab Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 4 Sep 2019 19:47:05 -0400 Subject: [PATCH] Fix error with pump where it doesn't fetch latest version of card --- src/clj/game/core/ice.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/game/core/ice.clj b/src/clj/game/core/ice.clj index fb0ec8d2e9..c3af452814 100644 --- a/src/clj/game/core/ice.clj +++ b/src/clj/game/core/ice.clj @@ -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)))