- Added Coalition Victory. I appreciate the help on this one.

This commit is contained in:
jeffwadsworth
2011-11-01 15:48:26 +00:00
parent e206b2841a
commit 9593bce6ae
3 changed files with 29 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -1453,6 +1453,7 @@ res/cardsfolder/c/clout_of_the_dominus.txt svneol=native#text/plain
res/cardsfolder/c/clutch_of_the_undercity.txt svneol=native#text/plain
res/cardsfolder/c/clutch_of_undeath.txt svneol=native#text/plain
res/cardsfolder/c/coal_golem.txt svneol=native#text/plain
res/cardsfolder/c/coalition_victory.txt -text svneol=unset#text/plain
res/cardsfolder/c/coast_watcher.txt svneol=native#text/plain
res/cardsfolder/c/coastal_drake.txt svneol=native#text/plain
res/cardsfolder/c/coastal_hornclaw.txt svneol=native#text/plain

View File

@@ -0,0 +1,13 @@
Name:Coalition Victory
ManaCost:3 W U B R G
Types:Sorcery
Text:no text
A:SP$ WinsGame | Cost$ 3 W U B R G | Defined$ You | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ10 | SpellDescription$ If you have all basic lands and all colored creatures, you win mutha fucker.
SVar:Z:Count$ColoredCreatures
SVar:Y:Count$Domain
SVar:X:SVar$Y/Plus.Z
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/coalition_victory.jpg
End

View File

@@ -2942,7 +2942,6 @@ public class CardFactoryUtil {
n++;
}
}
System.out.println("N is equal to" + n);
return CardFactoryUtil.doXMath(n, m, c);
}
@@ -2956,7 +2955,21 @@ public class CardFactoryUtil {
n++;
}
}
System.out.println("Opp N is equal to" + n);
return CardFactoryUtil.doXMath(n, m, c);
}
//Count$ColoredCreatures *a DOMAIN for creatures*
if (sq[0].contains("ColoredCreatures")) {
someCards.addAll(cardController.getCardsIn(Zone.Battlefield));
someCards = someCards.filter(CardListFilter.CREATURES);
final String[] colors = { "green", "white", "red", "blue", "black" };
for (int i = 0; i < colors.length; i++) {
if (someCards.getColor(colors[i]).size() > 0) {
n++;
}
}
return CardFactoryUtil.doXMath(n, m, c);
}