added Silverstorm Samurai and Sokenzan Spellblade
parent
1504f35ea4
commit
6c59a6ee45
|
@ -12807,3 +12807,28 @@ converted=6
|
|||
cost={4}{W}{W}
|
||||
pt=4/4
|
||||
timing=main
|
||||
|
||||
>Silverstorm Samurai
|
||||
image=http://magiccards.info/scans/en/bok/22.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Fox,Samurai
|
||||
color=w
|
||||
converted=6
|
||||
cost={4}{W}{W}
|
||||
pt=3/3
|
||||
ability=flash
|
||||
timing=flash
|
||||
|
||||
>Sokenzan Spellblade
|
||||
image=http://magiccards.info/scans/en/sok/115.jpg
|
||||
value=3
|
||||
rarity=C
|
||||
type=Creature
|
||||
subtype=Ogre,Samurai,Shaman
|
||||
color=r
|
||||
converted=5
|
||||
cost={4}{R}
|
||||
pt=2/3
|
||||
timing=flash
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
|
||||
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
|
||||
|
||||
public class Silverstorm_Samurai {
|
||||
private static final int amount = 1;
|
||||
|
||||
public static final MagicBecomesBlockedPumpTrigger T1 = new MagicBecomesBlockedPumpTrigger(amount,amount);
|
||||
|
||||
public static final MagicWhenBlocksPumpTrigger T2 = new MagicWhenBlocksPumpTrigger(amount,amount);
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicManaCost;
|
||||
import magic.model.MagicPayedCost;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicSource;
|
||||
import magic.model.action.MagicChangeTurnPTAction;
|
||||
import magic.model.condition.MagicCondition;
|
||||
import magic.model.event.MagicActivationHints;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.event.MagicPayManaCostEvent;
|
||||
import magic.model.event.MagicPermanentActivation;
|
||||
import magic.model.event.MagicTiming;
|
||||
import magic.model.trigger.MagicBecomesBlockedPumpTrigger;
|
||||
import magic.model.trigger.MagicWhenBlocksPumpTrigger;
|
||||
|
||||
public class Sokenzan_Spellblade {
|
||||
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 MagicPermanentActivation A = new MagicPermanentActivation(
|
||||
new MagicCondition[]{MagicManaCost.ONE_RED.getCondition()},
|
||||
new MagicActivationHints(MagicTiming.Pump),
|
||||
"Pump") {
|
||||
@Override
|
||||
public MagicEvent[] getCostEvent(final MagicSource source) {
|
||||
return new MagicEvent[]{new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.ONE_RED)};
|
||||
}
|
||||
@Override
|
||||
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||||
return new MagicEvent(
|
||||
source,
|
||||
source.getController(),
|
||||
new Object[]{source,source.getController()},
|
||||
this,
|
||||
source + " gets +X/+0 until end of turn, where " +
|
||||
"X is the number of cards in your hand.");
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
final MagicGame game,
|
||||
final MagicEvent event,
|
||||
final Object[] data,
|
||||
final Object[] choiceResults) {
|
||||
final MagicPlayer player = (MagicPlayer)data[1];
|
||||
game.doAction(new MagicChangeTurnPTAction(
|
||||
(MagicPermanent)data[0],
|
||||
player.getHandSize(),
|
||||
0));
|
||||
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue