added Copper Myr and Copperhorn Scout
parent
d60b246dcb
commit
9b2268d79a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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<MagicTarget> 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue