mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Added Ancient Ooze
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
12
res/cardsfolder/a/ancient_ooze.txt
Normal file
12
res/cardsfolder/a/ancient_ooze.txt
Normal 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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user