diff --git a/resources/magic/data/cards.txt b/resources/magic/data/cards.txt index b0beb9e7dc..bf87cd0943 100644 --- a/resources/magic/data/cards.txt +++ b/resources/magic/data/cards.txt @@ -11632,3 +11632,27 @@ color=g converted=4 cost={3}{G} timing=main + +>Copper Myr +image=http://magiccards.info/scans/en/som/146.jpg +value=3 +rarity=C +type=Artifact,Creature +subtype=Myr +converted=2 +cost={2} +pt=1/1 +timing=smain +mana_or_combat + +>Copperhorn Scout +image=http://magiccards.info/scans/en/som/116.jpg +value=2 +rarity=C +type=Creature +subtype=Elf,Scout +color=g +converted=1 +cost={G} +pt=1/1 +timing=main diff --git a/src/magic/card/Copper_Myr.java b/src/magic/card/Copper_Myr.java new file mode 100644 index 0000000000..e19e635f4f --- /dev/null +++ b/src/magic/card/Copper_Myr.java @@ -0,0 +1,13 @@ + +package magic.card; + +import magic.model.MagicManaType; +import magic.model.event.MagicManaActivation; +import magic.model.event.MagicTapManaActivation; + +import java.util.Arrays; + +public class Copper_Myr { + public static final MagicManaActivation M = + new MagicTapManaActivation(Arrays.asList(MagicManaType.Colorless, MagicManaType.Green), 1); +} diff --git a/src/magic/card/Copperhorn_Scout.java b/src/magic/card/Copperhorn_Scout.java new file mode 100644 index 0000000000..1f43522838 --- /dev/null +++ b/src/magic/card/Copperhorn_Scout.java @@ -0,0 +1,48 @@ +package magic.card; + +import magic.model.MagicGame; +import magic.model.MagicPermanent; +import magic.model.MagicPlayer; +import magic.model.action.MagicUntapAction; +import magic.model.event.MagicEvent; +import magic.model.target.MagicTarget; +import magic.model.target.MagicTargetFilter; +import magic.model.trigger.MagicWhenAttacksTrigger; + +import java.util.Collection; + +public class Copperhorn_Scout { + public static final MagicWhenAttacksTrigger T = new MagicWhenAttacksTrigger() { + @Override + public MagicEvent executeTrigger( + final MagicGame game, + final MagicPermanent permanent, + final MagicPermanent data) { + final MagicPlayer player = permanent.getController(); + return (permanent == data) ? + new MagicEvent( + permanent, + player, + new Object[]{permanent,player}, + this, + "Untap each other creature you control."): + MagicEvent.NONE; + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object data[], + final Object[] choiceResults) { + final MagicPermanent permanent = (MagicPermanent)data[0]; + final Collection targets = game.filterTargets( + (MagicPlayer)data[1], + MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL); + for (final MagicTarget target : targets) { + if (target != permanent) { + game.doAction(new MagicUntapAction((MagicPermanent)target)); + } + } + } + }; +}