diff --git a/lib/magic/cards/verduran_enchantress.rb b/lib/magic/cards/verduran_enchantress.rb index c431581..45d370b 100644 --- a/lib/magic/cards/verduran_enchantress.rb +++ b/lib/magic/cards/verduran_enchantress.rb @@ -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 diff --git a/lib/magic/triggered_ability/spell_cast.rb b/lib/magic/triggered_ability/spell_cast.rb index 3f62dec..3219293 100644 --- a/lib/magic/triggered_ability/spell_cast.rb +++ b/lib/magic/triggered_ability/spell_cast.rb @@ -4,6 +4,10 @@ class SpellCast < TriggeredAbility def spell event.spell end + + def enchantment? + spell.enchantment? + end end end end