- Added Collapsing Borders. Yeah, the Count$ name is weird, but anything with "Domain" in the name would not work correctly.

This commit is contained in:
jeffwadsworth
2011-10-30 22:55:47 +00:00
parent 3933b9fe46
commit 0cdb4bfe16
3 changed files with 31 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1470,6 +1470,7 @@ res/cardsfolder/c/cold_eyed_selkie.txt svneol=native#text/plain
res/cardsfolder/c/cold_snap.txt -text res/cardsfolder/c/cold_snap.txt -text
res/cardsfolder/c/coldsteel_heart.txt -text res/cardsfolder/c/coldsteel_heart.txt -text
res/cardsfolder/c/colfenors_urn.txt -text res/cardsfolder/c/colfenors_urn.txt -text
res/cardsfolder/c/collapsing_borders.txt -text
res/cardsfolder/c/collective_restraint.txt svneol=native#text/plain res/cardsfolder/c/collective_restraint.txt svneol=native#text/plain
res/cardsfolder/c/collective_unconscious.txt svneol=native#text/plain res/cardsfolder/c/collective_unconscious.txt svneol=native#text/plain
res/cardsfolder/c/colos_yearling.txt svneol=native#text/plain res/cardsfolder/c/colos_yearling.txt svneol=native#text/plain

View File

@@ -0,0 +1,16 @@
Name:Collapsing Borders
ManaCost:3 R
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigGainLifeYou | TriggerZones$ Battlefield | TriggerDescription$ Domain : At the beginning of each player's upkeep, that player gains 1 life for each basic land type among lands he or she controls. Then CARDNAME deals 3 damage to him or her.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Opponent | Execute$ TrigGainLifeOpp | TriggerZones$ Battlefield | Secondary$ True | TriggerDescription$ Domain : At the beginning of each player's upkeep, that player gains 1 life for each basic land type among lands he or she controls. Then CARDNAME deals 3 damage to him or her.
SVar:TrigGainLifeYou:AB$ GainLife | Cost$ 0 | Defined$ You | LifeAmount$ Y | SubAbility$ DBDamageYou
SVar:TrigGainLifeOpp:AB$ GainLife | Cost$ 0 | Defined$ Opponent | LifeAmount$ X | SubAbility$ DBDamageOpp
SVar:DBDamageYou:DB$ DealDamage | Defined$ You | NumDmg$ 3
SVar:DBDamageOpp:DB$ DealDamage | Defined$ Opponent | NumDmg$ 3
SVar:Y:Count$Domain
SVar:X:Count$OpponentDom
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/collapsing_borders.jpg
End

View File

@@ -2943,7 +2943,21 @@ public class CardFactoryUtil {
n++; n++;
} }
} }
System.out.println("N is equal to" +n);
return CardFactoryUtil.doXMath(n, m, c);
}
// Count$OpponentDom
if (sq[0].contains("OpponentDom")) {
someCards.addAll(cardController.getOpponent().getCardsIn(Zone.Battlefield));
final String[] basic = { "Forest", "Plains", "Mountain", "Island", "Swamp" };
for (int i = 0; i < basic.length; i++) {
if (!someCards.getType(basic[i]).isEmpty()) {
n++;
}
}
System.out.println("Opp N is equal to" +n);
return CardFactoryUtil.doXMath(n, m, c); return CardFactoryUtil.doXMath(n, m, c);
} }