Skip to content

Commit

Permalink
Tidy up Verduran Enchantress
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Oct 27, 2024
1 parent 4e2cefe commit 9f53d47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/magic/cards/verduran_enchantress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def resolve!
end
end

class SpellCastTrigger < TriggeredAbility
class SpellCastTrigger < TriggeredAbility::SpellCast
def should_perform?
you? && event.type?("Enchantment")
you? && enchantment?
end

def call
Expand Down
4 changes: 4 additions & 0 deletions lib/magic/triggered_ability/spell_cast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ class SpellCast < TriggeredAbility
def spell
event.spell
end

def enchantment?
spell.enchantment?
end
end
end
end

0 comments on commit 9f53d47

Please sign in to comment.