Skip to content

Commit

Permalink
Add missing graveyard card
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Nov 8, 2024
1 parent 6bcd090 commit 3c0ac40
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/magic/graveyard_card.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module Magic
class GraveyardCard
attr_reader :card

def initialize(card:)
@card = card
end

def inspect
"#<GraveyardCard name:#{name}>"
end

def activated_abilities
@card.activated_abilities.map { |ability| ability.new(source: card) }
end

def method_missing(name, *args, &block)
@card.send(name, *args, &block)
end
end
end

0 comments on commit 3c0ac40

Please sign in to comment.