add Phyrexian Ingester (from New Phyrexia)

This commit is contained in:
jendave
2011-08-06 23:26:48 +00:00
parent 9bbd2fab1c
commit e90adb9209
3 changed files with 36 additions and 3 deletions

1
.gitattributes vendored
View File

@@ -5091,6 +5091,7 @@ res/cardsfolder/phyrexian_gargantua.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_ghoul.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_hulk.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_hydra.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_ingester.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_ironfoot.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_juggernaut.txt -text svneol=native#text/plain
res/cardsfolder/phyrexian_lens.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Phyrexian Ingester
ManaCost:6 U
Types:Creature Beast
Text:no text
PT:3/3
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | OptionalDecider$ You | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, you may exile target nontoken creature.
SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Creature.nonToken | TgtPrompt$ Select target nontoken creature | Origin$ Battlefield | Destination$ Exile
K:stPumpSelf:Creature:X/Y:Imprint:CARDNAME gets +X/+Y, where X is the exiled creature card's power and Y is its toughness.
SVar:X:Imprinted$CardPower
SVar:Y:Imprinted$CardToughness
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/phyrexian_ingester.jpg
End

View File

@@ -5756,17 +5756,32 @@ public class GameActionUtil {
String[] pt = k[2].split("/");
Card cardWithXValue;
String xString = cardWithKeyword.getSVar("X").split("$")[0];
Card cardWithYValue;
String yString = cardWithKeyword.getSVar("Y").split("$")[0];
if(xString.startsWith("Imprinted") && !cardWithKeyword.getImprinted().isEmpty()) {
cardWithXValue = cardWithKeyword.getImprinted().get(0);
}
else cardWithXValue = cardWithKeyword;
if(yString.startsWith("Imprinted") && !cardWithKeyword.getImprinted().isEmpty()) {
cardWithYValue = cardWithKeyword.getImprinted().get(0);
}
else cardWithYValue = cardWithKeyword;
int x = 0;
if (pt[0].contains("X") || pt[1].contains("X"))
x = CardFactoryUtil.xCount(cardWithKeyword, cardWithKeyword.getSVar("X").split("\\$")[1]);
x = CardFactoryUtil.xCount(cardWithXValue, cardWithKeyword.getSVar("X").split("\\$")[1]);
se.setXValue(x);
int y = 0;
if (pt[1].contains("Y"))
y = CardFactoryUtil.xCount(cardWithKeyword, cardWithKeyword.getSVar("Y").split("\\$")[1]);
y = CardFactoryUtil.xCount(cardWithYValue, cardWithKeyword.getSVar("Y").split("\\$")[1]);
se.setYValue(y);
addStaticEffects(cardWithKeyword,affectedCards,k[2],x, y); //give the boni to the affected cards
addStaticEffects(cardWithKeyword, affectedCards, k[2], x, y); //give the boni to the affected cards
storage.add(se); // store the information
}
@@ -5925,6 +5940,9 @@ public class GameActionUtil {
if(SpecialConditions.contains("Threshold")) {
if (!SourceCard.getController().hasThreshold()) return false;
}
if(SpecialConditions.contains("Imprint")) {
if(SourceCard.getImprinted().isEmpty()) return false;
}
if(SpecialConditions.contains("Hellbent")) {
CardList Handcards = new CardList();
Handcards.addAll(AllZone.getZone(Constant.Zone.Hand, SourceCard.getController()).getCards());