diff --git a/release/Magarena/scripts/Anowon__the_Ruin_Sage.groovy b/release/Magarena/scripts/Anowon__the_Ruin_Sage.groovy new file mode 100644 index 0000000000..7e3935da8e --- /dev/null +++ b/release/Magarena/scripts/Anowon__the_Ruin_Sage.groovy @@ -0,0 +1,26 @@ +[ + new MagicAtUpkeepTrigger() { + @Override + public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) { + return permanent.isController(upkeepPlayer) ? + new MagicEvent( + permanent, + upkeepPlayer, + this, + "Each player sacrifices a non-Vampire creature." + ): + MagicEvent.NONE; + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + for (final MagicPlayer player : game.getPlayers()) { + game.addEvent(new MagicSacrificePermanentEvent( + event.getSource(), + player, + MagicTargetChoice.SACRIFICE_NON_VAMPIRE + )); + } + } + } +] diff --git a/release/Magarena/scripts/Anowon__the_Ruin_Sage.txt b/release/Magarena/scripts/Anowon__the_Ruin_Sage.txt new file mode 100644 index 0000000000..0c5c09a641 --- /dev/null +++ b/release/Magarena/scripts/Anowon__the_Ruin_Sage.txt @@ -0,0 +1,11 @@ +name=Anowon, the Ruin Sage +url=http://magiccards.info/wwk/en/49.html +image=http://magiccards.info/scans/en/wwk/49.jpg +value=3.955 +rarity=R +type=Legendary,Creature +subtype=Vampire,Shaman +cost={3}{B}{B} +pt=4/3 +timing=fmain +requires_groovy_code