Skip to content

Commit

Permalink
Use etb DSL for Acidic Slime
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jan 17, 2024
1 parent bcbe586 commit 24183af
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions lib/magic/cards/acidic_slime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,20 @@ module Cards
keywords :deathtouch
power 2
toughness 2
end

class AcidicSlime < Creature
def target_choices(_)
game.battlefield.cards.by_any_type("Artifact", "Enchantment", "Land")
end

class ETB < TriggeredAbility::EnterTheBattlefield
def perform

effect = Effects::DestroyTarget.new(
enters_the_battlefield do
effect = Effects::DestroyTarget.new(
source: permanent,
)
game.add_effect(effect)
end
game.add_effect(effect)
end

def etb_triggers = [ETB]
end

class AcidicSlime < Creature
def target_choices(_)
game.battlefield.cards.by_any_type("Artifact", "Enchantment", "Land")
end
end
end
end

0 comments on commit 24183af

Please sign in to comment.