added Nagao, Bound by Honor and Nezumi Ronin

master
beholder 2011-10-08 16:40:49 +02:00
parent 58f0e4ca0c
commit 9bca84041d
3 changed files with 87 additions and 0 deletions

View File

@ -12734,3 +12734,27 @@ cost={3}{W}
pt=2/2
ability=flying
timing=main
>Nagao, Bound by Honor
image=http://magiccards.info/scans/en/chk/36.jpg
value=5
rarity=R
type=Legendary,Creature
subtype=Human,Samurai
color=w
converted=4
cost={3}{W}
pt=3/3
timing=main
>Nezumi Ronin
image=http://magiccards.info/scans/en/chk/130.jpg
value=2
rarity=C
type=Creature
subtype=Rat,Samurai
color=b
converted=3
cost={2}{B}
pt=3/1
timing=main

View File

@ -0,0 +1,51 @@
package magic.card;
import java.util.Collection;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.event.MagicEvent;
import magic.model.target.MagicTarget;
import magic.model.target.MagicTargetFilter;
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
import magic.model.trigger.MagicWhenAttacksTrigger;
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
public class Nagao__Bound_by_Honor {
private static final int amount = 1;
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(amount,amount);
public static final MagicWhenBlocksPumpTrigger T2 = new MagicWhenBlocksPumpTrigger(amount,amount);
public static final MagicWhenAttacksTrigger T3 = new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
final MagicPlayer player = creature.getController();
return (permanent == creature) ?
new MagicEvent(
permanent,
player,
new Object[]{player},
this,
"Samurai creatures you control get +1/+1 until end of turn.") :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object data[],
final Object[] choiceResults) {
final Collection<MagicTarget> targets =
game.filterTargets((MagicPlayer)data[0],MagicTargetFilter.TARGET_SAMURAI_YOU_CONTROL);
for (final MagicTarget target : targets) {
final MagicPermanent creature = (MagicPermanent)target;
game.doAction(new MagicChangeTurnPTAction(creature,1,1));
}
}
};
}

View File

@ -0,0 +1,12 @@
package magic.card;
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
public class Nezumi_Ronin {
private static final int amount = 1;
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(amount,amount);
public static final MagicWhenBlocksPumpTrigger T2 = new MagicWhenBlocksPumpTrigger(amount,amount);
}