Skip to content

Commit 3968f6d

Browse files
authored
Merge pull request #7956 from NBKelly/normalize-trash-cost-causes
Make all trash costs specify that they were from abilities
2 parents d18e406 + 3e84233 commit 3968f6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/clj/game/core/costs.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@
702702
:max (value cost)
703703
:card select-fn}
704704
:async true
705-
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :seen false :suppress-checkpoint true})
705+
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :seen false :cause :ability-cost :suppress-checkpoint true})
706706
(complete-with-result
707707
state side eid
708708
{:paid/msg (str "trashes " (quantify (count async-result) "card")
@@ -742,7 +742,7 @@
742742
(defmethod handler :trash-entire-hand
743743
[cost state side eid card]
744744
(let [cards (get-in @state [side :hand])]
745-
(wait-for (trash-cards state side cards {:unpreventable true :suppress-checkpoint true})
745+
(wait-for (trash-cards state side cards {:unpreventable true :suppress-checkpoint true :cause :ability-cost})
746746
(complete-with-result
747747
state side eid
748748
{:paid/msg (str "trashes all (" (count async-result) ") cards in "
@@ -770,7 +770,7 @@
770770
:choices {:all true
771771
:max (value cost)
772772
:card (every-pred hardware? in-hand?)}
773-
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :suppress-checkpoint true})
773+
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :suppress-checkpoint true :cause :ability-cost})
774774
(complete-with-result
775775
state side eid
776776
{:paid/msg (str "trashes " (quantify (count async-result) "piece")
@@ -798,7 +798,7 @@
798798
:choices {:all true
799799
:max (value cost)
800800
:card (every-pred program? in-hand?)}
801-
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :suppress-checkpoint true})
801+
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :cause :ability-cost :suppress-checkpoint true})
802802
(complete-with-result
803803
state side eid
804804
{:paid/msg (str "trashes " (quantify (count async-result) "program")
@@ -825,7 +825,7 @@
825825
:choices {:all true
826826
:max (value cost)
827827
:card (every-pred resource? in-hand?)}
828-
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :suppress-checkpoint true})
828+
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :cause :ability-cost :suppress-checkpoint true})
829829
(complete-with-result
830830
state side eid
831831
{:paid/msg (str "trashes " (quantify (count async-result) "resource")

0 commit comments

Comments
 (0)