- Added Excavator

This commit is contained in:
swordshine
2013-10-05 11:38:53 +00:00
parent cd9cdbf1be
commit a9fb42eb15
3 changed files with 19 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -3578,6 +3578,7 @@ res/cardsfolder/e/exalted_angel.txt svneol=native#text/plain
res/cardsfolder/e/exalted_dragon.txt -text res/cardsfolder/e/exalted_dragon.txt -text
res/cardsfolder/e/exava_rakdos_blood_witch.txt -text res/cardsfolder/e/exava_rakdos_blood_witch.txt -text
res/cardsfolder/e/excavation.txt svneol=native#text/plain res/cardsfolder/e/excavation.txt svneol=native#text/plain
res/cardsfolder/e/excavator.txt -text
res/cardsfolder/e/excise.txt svneol=native#text/plain res/cardsfolder/e/excise.txt svneol=native#text/plain
res/cardsfolder/e/exclude.txt svneol=native#text/plain res/cardsfolder/e/exclude.txt svneol=native#text/plain
res/cardsfolder/e/exclusion_ritual.txt -text res/cardsfolder/e/exclusion_ritual.txt -text

View File

@@ -0,0 +1,8 @@
Name:Excavator
ManaCost:2
Types:Artifact
A:AB$ Pump | Cost$ T Sac<1/Land.Basic/basic land> | DefinedLandwalk$ Sacrificed | ValidTgts$ Creature | SpellDescription$ Target creature gains landwalk of each of the land types of the sacrificed land until end of turn.
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/excavator.jpg
Oracle:{T}, Sacrifice a basic land: Target creature gains landwalk of each of the land types of the sacrificed land until end of turn.

View File

@@ -8,6 +8,7 @@ import forge.Card;
import forge.CardUtil; import forge.CardUtil;
import forge.Command; import forge.Command;
import forge.GameEntity; import forge.GameEntity;
import forge.card.CardType;
import forge.card.ability.AbilityUtils; import forge.card.ability.AbilityUtils;
import forge.card.ability.SpellAbilityEffect; import forge.card.ability.SpellAbilityEffect;
import forge.card.cardfactory.CardFactoryUtil; import forge.card.cardfactory.CardFactoryUtil;
@@ -207,6 +208,15 @@ public class PumpEffect extends SpellAbilityEffect {
} }
} }
} }
if (sa.hasParam("DefinedLandwalk")) {
final String landtype = sa.getParam("DefinedLandwalk");
final Card c = AbilityUtils.getDefinedCards(host, landtype, sa).get(0);
for (String type : c.getType()) {
if (CardType.isALandType(type) || CardType.isABasicLandType(type)) {
keywords.add(type + "walk");
}
}
}
if (sa.hasParam("RandomKeyword")) { if (sa.hasParam("RandomKeyword")) {
final String num = sa.hasParam("RandomKWNum") ? sa.getParam("RandomKWNum") : "1"; final String num = sa.hasParam("RandomKWNum") ? sa.getParam("RandomKWNum") : "1";
final int numkw = AbilityUtils.calculateAmount(host, num, sa); final int numkw = AbilityUtils.calculateAmount(host, num, sa);