mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added Prowling Pangolin.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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/prowess_of_the_fair.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_entity.txt svneol=native#text/plain
|
||||
res/cardsfolder/p/psionic_gift.txt svneol=native#text/plain
|
||||
|
||||
9
res/cardsfolder/p/prowling_pangolin.txt
Normal file
9
res/cardsfolder/p/prowling_pangolin.txt
Normal 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
|
||||
@@ -364,6 +364,18 @@ public class ComputerUtil {
|
||||
CardLists.shuffle(sacMeList);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -410,6 +410,7 @@ public class ComputerUtilCost {
|
||||
|
||||
return checkLifeCost(payer, cost, source, 4, sa)
|
||||
&& checkDamageCost(payer, cost, source, 4)
|
||||
&& (isMine || checkSacrificeCost(payer, cost, source))
|
||||
&& (isMine || checkDiscardCost(payer, cost, source))
|
||||
&& (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2)
|
||||
&& (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2)
|
||||
|
||||
Reference in New Issue
Block a user