added Gavony Township and Kessig Wolf Run

master
beholder 2011-10-23 10:12:09 +02:00
parent 04fcdd9f41
commit f00b6d2dbb
4 changed files with 152 additions and 0 deletions

View File

@ -16705,3 +16705,19 @@ rarity=C
type=Land
subtype=Desert
timing=land
>Gavony Township
url=http://magiccards.info/isd/en/239.html
image=http://magiccards.info/scans/en/isd/239.jpg
value=4
rarity=R
type=Land
timing=land
>Kessig Wolf Run
url=http://magiccards.info/isd/en/243.html
image=http://magiccards.info/scans/en/isd/243.jpg
value=4
rarity=R
type=Land
timing=land

View File

@ -0,0 +1,66 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicManaCost;
import magic.model.MagicManaType;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.MagicSource;
import magic.model.action.MagicChangeCountersAction;
import magic.model.condition.MagicCondition;
import magic.model.event.MagicActivationHints;
import magic.model.event.MagicEvent;
import magic.model.event.MagicManaActivation;
import magic.model.event.MagicPayManaCostTapEvent;
import magic.model.event.MagicPermanentActivation;
import magic.model.event.MagicTapManaActivation;
import magic.model.event.MagicTiming;
import magic.model.target.MagicTarget;
import magic.model.target.MagicTargetFilter;
import java.util.Arrays;
import java.util.Collection;
public class Gavony_Township {
public static final MagicManaActivation M = new MagicTapManaActivation(
Arrays.asList(MagicManaType.Colorless),0);
public static final MagicPermanentActivation A = new MagicPermanentActivation(
new MagicCondition[]{
MagicCondition.CAN_TAP_CONDITION,
MagicManaCost.TWO_GREEN_WHITE.getCondition()
},
new MagicActivationHints(MagicTiming.Pump),
"Pump") {
@Override
public MagicEvent[] getCostEvent(final MagicSource source) {
return new MagicEvent[]{
new MagicPayManaCostTapEvent(source,source.getController(),MagicManaCost.TWO_GREEN_WHITE)};
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
source.getController(),
new Object[]{source.getController()},
this,
"Put a +1/+1 counter on each creature you control.");
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] data,
final Object[] choiceResults) {
final MagicPlayer player = (MagicPlayer)data[0];
final Collection<MagicTarget> targets =
game.filterTargets(player,MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicTarget target : targets) {
game.doAction(new MagicChangeCountersAction(
(MagicPermanent)target,MagicCounterType.PlusOne,1,true));
}
}
};
}

View File

@ -0,0 +1,68 @@
package magic.card;
import magic.model.MagicAbility;
import magic.model.MagicGame;
import magic.model.MagicManaCost;
import magic.model.MagicManaType;
import magic.model.MagicPayedCost;
import magic.model.MagicPermanent;
import magic.model.MagicSource;
import magic.model.action.MagicChangeTurnPTAction;
import magic.model.action.MagicPermanentAction;
import magic.model.action.MagicSetAbilityAction;
import magic.model.choice.MagicTargetChoice;
import magic.model.condition.MagicCondition;
import magic.model.event.MagicActivationHints;
import magic.model.event.MagicEvent;
import magic.model.event.MagicManaActivation;
import magic.model.event.MagicPayManaCostTapEvent;
import magic.model.event.MagicPermanentActivation;
import magic.model.event.MagicTapManaActivation;
import magic.model.event.MagicTiming;
import magic.model.target.MagicPumpTargetPicker;
import java.util.Arrays;
public class Kessig_Wolf_Run {
public static final MagicManaActivation M = new MagicTapManaActivation(
Arrays.asList(MagicManaType.Colorless),0);
public static final MagicPermanentActivation A = new MagicPermanentActivation(
new MagicCondition[]{
MagicCondition.CAN_TAP_CONDITION,
MagicManaCost.X_RED_GREEN.getCondition()
},
new MagicActivationHints(MagicTiming.Pump),
"Pump") {
@Override
public MagicEvent[] getCostEvent(final MagicSource source) {
return new MagicEvent[]{
new MagicPayManaCostTapEvent(source,source.getController(),MagicManaCost.X_RED_GREEN)};
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
final int amount = payedCost.getX();
return new MagicEvent(
source,
source.getController(),
MagicTargetChoice.POS_TARGET_CREATURE,
MagicPumpTargetPicker.getInstance(),
new Object[]{source,amount},
this,
"Target creature$ gets +" + amount +
"/+0 and gains trample until end of turn.");
}
@Override
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choiceResults) {
final int amount = (Integer)data[1];
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature,amount,0));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Trample));
}
});
}
};
}

View File

@ -74,6 +74,7 @@ public class MagicManaCost {
public static final MagicManaCost X_WHITE=MagicManaCost.createCost("{X}{W}");
public static final MagicManaCost BLACK_GREEN=MagicManaCost.createCost("{B}{G}");
public static final MagicManaCost GREEN_WHITE=MagicManaCost.createCost("{G}{W}");
public static final MagicManaCost TWO_GREEN_WHITE=MagicManaCost.createCost("{2}{G}{W}");
public static final MagicManaCost BLACK_BLACK=MagicManaCost.createCost("{B}{B}");
public static final MagicManaCost X_BLACK_BLACK=MagicManaCost.createCost("{X}{B}{B}");
public static final MagicManaCost ONE_BLACK_BLACK=MagicManaCost.createCost("{1}{B}{B}");
@ -87,6 +88,7 @@ public class MagicManaCost {
public static final MagicManaCost ONE_WHITE_OR_BLUE=MagicManaCost.createCost("{1}{W/U}");
public static final MagicManaCost THREE_WHITE_BLUE=MagicManaCost.createCost("{3}{W}{U}");
public static final MagicManaCost TWO_WHITE_WHITE_BLUE_BLUE=MagicManaCost.createCost("{2}{W}{W}{U}{U}");
public static final MagicManaCost X_RED_GREEN=MagicManaCost.createCost("{X}{R}{G}");
public static final MagicManaCost ONE_RED_GREEN=MagicManaCost.createCost("{1}{R}{G}");
public static final MagicManaCost TWO_RED_GREEN=MagicManaCost.createCost("{2}{R}{G}");
public static final MagicManaCost ONE_RED_RED_GREEN_GREEN=MagicManaCost.createCost("{1}{R}{R}{G}{G}");