mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added Excavator
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||||
|
|||||||
8
res/cardsfolder/e/excavator.txt
Normal file
8
res/cardsfolder/e/excavator.txt
Normal 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.
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user