From 858aa751e4f6fcf4c51c1f6fdcc7737a06d1b6d1 Mon Sep 17 00:00:00 2001 From: Sloth Date: Fri, 16 Sep 2011 14:12:33 +0000 Subject: [PATCH] - Added Wretched Banquet. --- .gitattributes | 1 + res/cardsfolder/w/wretched_banquet.txt | 11 +++++++++++ src/main/java/forge/Card.java | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 res/cardsfolder/w/wretched_banquet.txt diff --git a/.gitattributes b/.gitattributes index 0f547883290..1d4697d4976 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/res/cardsfolder/w/wretched_banquet.txt b/res/cardsfolder/w/wretched_banquet.txt new file mode 100644 index 00000000000..808f8cf7995 --- /dev/null +++ b/res/cardsfolder/w/wretched_banquet.txt @@ -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 \ No newline at end of file diff --git a/src/main/java/forge/Card.java b/src/main/java/forge/Card.java index d1e5152a9d2..5cf6a641437 100644 --- a/src/main/java/forge/Card.java +++ b/src/main/java/forge/Card.java @@ -5046,6 +5046,13 @@ public class Card extends GameEntity implements Comparable { 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) {