- Added Topple.

This commit is contained in:
Sloth
2011-08-25 20:31:18 +00:00
parent 5f5d857017
commit f412265403
4 changed files with 16 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -7902,6 +7902,7 @@ res/cardsfolder/t/tooth_and_nail.txt svneol=native#text/plain
res/cardsfolder/t/tooth_of_chiss_goria.txt svneol=native#text/plain
res/cardsfolder/t/tooth_of_ramos.txt svneol=native#text/plain
res/cardsfolder/t/topan_ascetic.txt svneol=native#text/plain
res/cardsfolder/t/topple.txt -text
res/cardsfolder/t/tor_giant.txt svneol=native#text/plain
res/cardsfolder/t/tor_wauki.txt svneol=native#text/plain
res/cardsfolder/t/torch_drake.txt svneol=native#text/plain

View File

@@ -3,7 +3,6 @@ ManaCost:W
Types:Instant
Text:no text
A:SP$ ChangeZone | Cost$ W | ValidTgts$ Creature.dealtDamageToYouThisTurn | TgtPrompt$ Select target creature that dealt damage to you this turn | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile target creature that dealt damage to you this turn.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/reciprocate.jpg
SetInfo:CHK|Uncommon|http://magiccards.info/scans/en/chk/40.jpg

View File

@@ -0,0 +1,8 @@
Name:Topple
ManaCost:2 W
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ 2 W | ValidTgts$ Creature.greatestPower | TgtPrompt$ Select target creature with the greatest power | Origin$ Battlefield | Destination$ Exile | SpellDescription$ Exile target creature with the greatest power. (If two or more creatures are tied for greatest power, target any one of them.)
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/topple.jpg
End

View File

@@ -4837,6 +4837,13 @@ public class Card extends MyObservable implements Comparable<Card> {
return false;
} else if (Property.startsWith("wasDealtDamageThisTurn")) {
if ((getReceivedDamageFromThisTurn().keySet()).isEmpty()) return false;
} else if (Property.startsWith("greatestPower")) {
CardList list = AllZoneUtil.getCreaturesInPlay();
for (Card crd : list) {
if (crd.getNetAttack() > getNetAttack()) {
return false;
}
}
} else if (Property.startsWith("enchanted")) {
if (!isEnchanted()) return false;
} else if (Property.startsWith("unenchanted")) {