- Added Prowling Pangolin.

This commit is contained in:
Sloth
2013-06-01 16:19:12 +00:00
parent 8e15e424eb
commit 8ade32e6ea
4 changed files with 23 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -8270,6 +8270,7 @@ res/cardsfolder/p/prototype_portal.txt svneol=native#text/plain
res/cardsfolder/p/provoke.txt svneol=native#text/plain res/cardsfolder/p/provoke.txt svneol=native#text/plain
res/cardsfolder/p/prowess_of_the_fair.txt svneol=native#text/plain res/cardsfolder/p/prowess_of_the_fair.txt svneol=native#text/plain
res/cardsfolder/p/prowling_nightstalker.txt svneol=native#text/plain res/cardsfolder/p/prowling_nightstalker.txt svneol=native#text/plain
res/cardsfolder/p/prowling_pangolin.txt -text
res/cardsfolder/p/psionic_blast.txt svneol=native#text/plain res/cardsfolder/p/psionic_blast.txt svneol=native#text/plain
res/cardsfolder/p/psionic_entity.txt svneol=native#text/plain res/cardsfolder/p/psionic_entity.txt svneol=native#text/plain
res/cardsfolder/p/psionic_gift.txt svneol=native#text/plain res/cardsfolder/p/psionic_gift.txt svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Prowling Pangolin
ManaCost:3 B B
Types:Creature Anteater Beast
PT:6/5
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Self | Execute$ TrigSac | TriggerDescription$ When CARDNAME enters the battlefield, any player may sacrifice two creatures. If a player does, sacrifice CARDNAME.
SVar:TrigSac:AB$ Sacrifice | Cost$ 0 | Defined$ Self | UnlessCost$ Sac<2/Creature> | UnlessPayer$ Player | UnlessSwitched$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/prowling_pangolin.jpg
Oracle:When Prowling Pangolin enters the battlefield, any player may sacrifice two creatures. If a player does, sacrifice Prowling Pangolin.
SetInfo:ONS Uncommon

View File

@@ -364,6 +364,18 @@ public class ComputerUtil {
CardLists.shuffle(sacMeList); CardLists.shuffle(sacMeList);
return sacMeList.get(0); return sacMeList.get(0);
} }
// Sac lands
final List<Card> landsInPlay = CardLists.getType(typeList, "Land");
if (!landsInPlay.isEmpty()) {
final List<Card> landsInHand = CardLists.getType(ai.getCardsIn(ZoneType.Battlefield), "Land");
final List<Card> nonLandsInHand = CardLists.getNotType(ai.getCardsIn(ZoneType.Hand), "Land");
final int highestCMC = Math.max(6, Aggregates.max(nonLandsInHand, CardPredicates.Accessors.fnGetCmc));
if (landsInPlay.size() + landsInHand.size() >= highestCMC) {
// Don't need more land.
return ComputerUtilCard.getWorstLand(landsInPlay);
}
}
} }
} }

View File

@@ -410,6 +410,7 @@ public class ComputerUtilCost {
return checkLifeCost(payer, cost, source, 4, sa) return checkLifeCost(payer, cost, source, 4, sa)
&& checkDamageCost(payer, cost, source, 4) && checkDamageCost(payer, cost, source, 4)
&& (isMine || checkSacrificeCost(payer, cost, source))
&& (isMine || checkDiscardCost(payer, cost, source)) && (isMine || checkDiscardCost(payer, cost, source))
&& (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2) && (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2)
&& (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2) && (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2)