Added Ancient Ooze

This commit is contained in:
moomarc
2012-07-10 09:35:35 +00:00
parent f452048b63
commit 1a95207158
3 changed files with 22 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -274,6 +274,7 @@ res/cardsfolder/a/ancient_grudge.txt svneol=native#text/plain
res/cardsfolder/a/ancient_hellkite.txt svneol=native#text/plain
res/cardsfolder/a/ancient_hydra.txt svneol=native#text/plain
res/cardsfolder/a/ancient_kavu.txt svneol=native#text/plain
res/cardsfolder/a/ancient_ooze.txt -text
res/cardsfolder/a/ancient_runes.txt svneol=native#text/plain
res/cardsfolder/a/ancient_silverback.txt svneol=native#text/plain
res/cardsfolder/a/ancient_spider.txt svneol=native#text/plain

View File

@@ -0,0 +1,12 @@
Name:Ancient Ooze
ManaCost:5 G G
Types:Creature Ooze
Text:no text
PT:*/*
S:Mode$ Continuous | EffectZone$ All | CharacteristicDefining$ True | SetPower$ X | SetToughness$ X | References$ X | Description$ CARDNAME's power and toughness are each equal to the total converted mana cost of other creatures you control.
SVar:X:Count$YourSumCMC_Creature.Other
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/ancient_ooze.jpg
SetInfo:SCG|Rare|http://magiccards.info/scans/en/sc/112.jpg
Oracle:Ancient Ooze's power and toughness are each equal to the total converted mana cost of other creatures you control.
End

View File

@@ -34,6 +34,7 @@ import forge.Card;
import forge.CardCharactersticName;
import forge.CardList;
import forge.CardListFilter;
import forge.CardListUtil;
import forge.CardUtil;
import forge.Command;
import forge.CommandArgs;
@@ -598,7 +599,6 @@ public class CardFactoryUtil {
if (c.getSVar("SacrificeEndCombat").equals("True")) {
value -= 40;
}
for (final SpellAbility sa : c.getSpellAbilities()) {
if (sa.isAbility()) {
@@ -2861,6 +2861,14 @@ public class CardFactoryUtil {
return CardFactoryUtil.doXMath(CardUtil.getConvertedManaCost(c), m, c);
}
}
// Count$YourSumCMC_valid
if (sq[0].contains("YourSumCMC")) {
final String[] restrictions = l[0].split("_");
final String[] rest = restrictions[1].split(",");
CardList cardsonbattlefield = AllZoneUtil.getCardsIn(ZoneType.Battlefield);
CardList filteredCards = cardsonbattlefield.getValidCards(rest, cardController, c);
return CardListUtil.sumCMC(filteredCards);
}
// Count$CardNumColors
if (sq[0].contains("CardNumColors")) {
return CardFactoryUtil.doXMath(CardUtil.getColors(c).size(), m, c);