Skip to content

Commit 938f209

Browse files
committed
Improve flashback check
1 parent 3cbbb1a commit 938f209

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/magic/actions/cast.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def mana_cost=(cost)
4343

4444
def mana_cost
4545
@mana_cost ||= begin
46-
if @flashback
46+
if @flashback && card.zone.graveyard?
4747
cost = card.flashback_cost
4848
else
4949
cost = card.cost

spec/stack/counterspell_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
context "counters annul, which was countering sol ring" do
1111
it "sol ring enters the battlefield" do
12+
p1.hand.add(sol_ring)
13+
p1.hand.add(counterspell)
14+
15+
p2.hand.add(annul)
16+
1217
p1.add_mana(red: 1)
1318
sol_ring_action = cast_action(card: sol_ring, player: p1)
1419
sol_ring_action.pay_mana(generic: { red: 1 } )

0 commit comments

Comments
 (0)