- Added Wretched Banquet.

This commit is contained in:
Sloth
2011-09-16 14:12:33 +00:00
parent 39878c3f70
commit 858aa751e4
3 changed files with 19 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -8817,6 +8817,7 @@ res/cardsfolder/w/wrecking_ball.txt svneol=native#text/plain
res/cardsfolder/w/wrench_mind.txt svneol=native#text/plain
res/cardsfolder/w/wrens_run_packmaster.txt svneol=native#text/plain
res/cardsfolder/w/wretched_anurid.txt svneol=native#text/plain
res/cardsfolder/w/wretched_banquet.txt -text
res/cardsfolder/w/wring_flesh.txt svneol=native#text/plain
res/cardsfolder/w/wu_admiral.txt svneol=native#text/plain
res/cardsfolder/w/wu_elite_cavalry.txt svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Wretched Banquet
ManaCost:B
Types:Instant
Text:no text
A:SP$ Destroy | Cost$ B | ValidTgts$ Creature | TgtPrompt$ Select target creature | ConditionDefined$ Targeted | ConditionPresent$ Creature.leastPower | ConditionCompare$ EQ1 | SpellDescription$ Destroy target creature if it has the least power or is tied for least power among creatures on the battlefield.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wretched_banquet.jpg
SetInfo:CFX|Common|http://magiccards.info/scans/en/cfx/56.jpg
Oracle:Destroy target creature if it has the least power or is tied for least power among creatures on the battlefield.
End

View File

@@ -5046,6 +5046,13 @@ public class Card extends GameEntity implements Comparable<Card> {
return false;
}
}
} else if (Property.startsWith("leastPower")) {
CardList list = AllZoneUtil.getCreaturesInPlay();
for (Card crd : list) {
if (crd.getNetAttack() < getNetAttack()) {
return false;
}
}
} else if (Property.startsWith("greatestCMC")) {
CardList list = AllZoneUtil.getCreaturesInPlay();
for (Card crd : list) {