added Herald of Serra and Hunting Moa
parent
666a608c3f
commit
25d1355665
|
@ -24780,3 +24780,30 @@ cost={3}{R}
|
|||
pt=3/2
|
||||
ability=haste
|
||||
timing=main
|
||||
|
||||
>Herald of Serra
|
||||
url=http://magiccards.info/us/en/17.html
|
||||
image=http://magiccards.info/scans/en/us/17.jpg
|
||||
value=4
|
||||
rarity=R
|
||||
type=Creature
|
||||
subtype=Angel
|
||||
color=w
|
||||
converted=4
|
||||
cost={2}{W}{W}
|
||||
pt=3/4
|
||||
ability=flying,vigilance
|
||||
timing=main
|
||||
|
||||
>Hunting Moa
|
||||
url=http://magiccards.info/arc/en/60.html
|
||||
image=http://magiccards.info/scans/en/arc/60.jpg
|
||||
value=3
|
||||
rarity=U
|
||||
type=Creature
|
||||
subtype=Bird,Beast
|
||||
color=g
|
||||
converted=3
|
||||
cost={2}{G}
|
||||
pt=3/2
|
||||
timing=main
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.trigger.MagicEchoTrigger;
|
||||
|
||||
public class Herald_of_Serra {
|
||||
public static final MagicEchoTrigger T1 = new MagicEchoTrigger();
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicCounterType;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicLocationType;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeCountersAction;
|
||||
import magic.model.action.MagicPermanentAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.target.MagicPumpTargetPicker;
|
||||
import magic.model.trigger.MagicEchoTrigger;
|
||||
import magic.model.trigger.MagicGraveyardTriggerData;
|
||||
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
|
||||
import magic.model.trigger.MagicWhenPutIntoGraveyardTrigger;
|
||||
|
||||
public class Hunting_Moa {
|
||||
public static final MagicEchoTrigger T1 = new MagicEchoTrigger();
|
||||
|
||||
public static final MagicWhenComesIntoPlayTrigger T2 = new MagicWhenComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(
|
||||
final MagicGame game,
|
||||
final MagicPermanent permanent,
|
||||
final MagicPlayer player) {
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
MagicTargetChoice.TARGET_CREATURE,
|
||||
MagicPumpTargetPicker.getInstance(),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
player + " puts a +1/+1 counter on target creature$.");
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent creature) {
|
||||
game.doAction(new MagicChangeCountersAction(
|
||||
creature,
|
||||
MagicCounterType.PlusOne,
|
||||
1,
|
||||
true));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
public static final MagicWhenPutIntoGraveyardTrigger T3 = new MagicWhenPutIntoGraveyardTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(
|
||||
final MagicGame game,
|
||||
final MagicPermanent permanent,
|
||||
final MagicGraveyardTriggerData triggerData) {
|
||||
final MagicPlayer player = permanent.getController();
|
||||
return (MagicLocationType.Play == triggerData.fromLocation) ?
|
||||
new MagicEvent(
|
||||
permanent,
|
||||
player,
|
||||
MagicTargetChoice.TARGET_CREATURE,
|
||||
MagicPumpTargetPicker.getInstance(),
|
||||
MagicEvent.NO_DATA,
|
||||
this,
|
||||
player + " puts a +1/+1 counter on target creature$.") :
|
||||
MagicEvent.NONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object data[],
|
||||
final Object[] choiceResults) {
|
||||
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
||||
public void doAction(final MagicPermanent creature) {
|
||||
game.doAction(new MagicChangeCountersAction(
|
||||
creature,
|
||||
MagicCounterType.PlusOne,
|
||||
1,
|
||||
true));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue