diff --git a/.gitattributes b/.gitattributes index 8bb2933e425..0f47997bc30 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3578,6 +3578,7 @@ res/cardsfolder/e/exalted_angel.txt svneol=native#text/plain res/cardsfolder/e/exalted_dragon.txt -text res/cardsfolder/e/exava_rakdos_blood_witch.txt -text 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/exclude.txt svneol=native#text/plain res/cardsfolder/e/exclusion_ritual.txt -text diff --git a/res/cardsfolder/e/excavator.txt b/res/cardsfolder/e/excavator.txt new file mode 100644 index 00000000000..f0b61ef001b --- /dev/null +++ b/res/cardsfolder/e/excavator.txt @@ -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. diff --git a/src/main/java/forge/card/ability/effects/PumpEffect.java b/src/main/java/forge/card/ability/effects/PumpEffect.java index a78614b4573..a35bcae6740 100644 --- a/src/main/java/forge/card/ability/effects/PumpEffect.java +++ b/src/main/java/forge/card/ability/effects/PumpEffect.java @@ -8,6 +8,7 @@ import forge.Card; import forge.CardUtil; import forge.Command; import forge.GameEntity; +import forge.card.CardType; import forge.card.ability.AbilityUtils; import forge.card.ability.SpellAbilityEffect; 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")) { final String num = sa.hasParam("RandomKWNum") ? sa.getParam("RandomKWNum") : "1"; final int numkw = AbilityUtils.calculateAmount(host, num, sa);