- Added Heretic's Punishment.

This commit is contained in:
jeffwadsworth
2012-02-23 23:52:47 +00:00
parent bde08882ed
commit bb0b97bf1b
3 changed files with 30 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -4030,6 +4030,7 @@ res/cardsfolder/h/henge_of_ramos.txt svneol=native#text/plain
res/cardsfolder/h/herald_of_serra.txt svneol=native#text/plain
res/cardsfolder/h/herbal_poultice.txt svneol=native#text/plain
res/cardsfolder/h/herd_gnarr.txt svneol=native#text/plain
res/cardsfolder/h/heretics_punishment.txt -text svneol=unset#text/plain
res/cardsfolder/h/heritage_druid.txt svneol=native#text/plain
res/cardsfolder/h/hermetic_study.txt svneol=native#text/plain
res/cardsfolder/h/hermit_druid.txt svneol=native#text/plain

View File

@@ -0,0 +1,13 @@
Name:Heretic's Punishment
ManaCost:4 R
Types:Enchantment
Text:no text
A:AB$ Mill | Cost$ 3 R | NumCards$ 3 | RememberMilled$ True | SubAbility$ DBHereticDamage | SpellDescription$ Choose target creature or player, then put the top three cards of your library into your graveyard. CARDNAME deals damage to that creature or player equal to the highest converted mana cost among those cards.
SVar:DBHereticDamage:DB$ DealDamage | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ HereticX | SubAbility$ DBHereticCleanup
SVar:DBHereticCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:HereticX:Count$HighestCMCRemembered
SVar:RemAIDeck:True
SVar:RemRandomDeck
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/heretics_punishment.jpg
End

View File

@@ -2761,6 +2761,22 @@ public class CardFactoryUtil {
}
return highest;
}
if (l[0].contains("HighestCMCRemembered")) {
final CardList list = new CardList();
int highest = 0;
for (final Object o : c.getRemembered()) {
if (o instanceof Card) {
list.add(AllZoneUtil.getCardState((Card) o));
}
}
for (final Card crd : list) {
if (crd.getCMC() > highest) {
highest = crd.getCMC();
}
}
return highest;
}
if (l[0].contains("RememberedSumPower")) {
final CardList list = new CardList();