add Wall of Roots (from Mirage)

This commit is contained in:
jendave
2011-08-06 14:05:01 +00:00
parent d9dd8c5d73
commit 3150326a01
5 changed files with 47 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -5456,6 +5456,7 @@ res/cardsfolder/wall_of_pine_needles.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_putrid_flesh.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_razors.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_reverence.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_roots.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_spears.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_stone.txt -text svneol=native#text/plain
res/cardsfolder/wall_of_swords.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Wall of Roots
ManaCost:1 G
Types:Creature Plant Wall
Text:no text
PT:0/5
K:Defender
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wall_of_roots.jpg
End

View File

@@ -1776,7 +1776,7 @@ public class Card extends MyObservable {
+ getCounters(Counters.P1P1) + (2*getCounters(Counters.P1P2))
- getCounters(Counters.M1M1) + getCounters(Counters.P0P1 )
- getCounters(Counters.P0M1) - (2*getCounters(Counters.P0M2))
+ (2*getCounters(Counters.P2P2));
+ (2*getCounters(Counters.P2P2)) - getCounters(Counters.M0M1);
return total;
}

View File

@@ -13706,6 +13706,40 @@ public class CardFactory_Creatures {
card.addSpellAbility(kicker);
}//*************** END ************ END **************************
//*************** START ************ START **************************
else if(cardName.equals("Wall of Roots")) {
/*
* Put a -0/-1 counter on Wall of Roots: Add to your mana pool. Activate this ability only once each turn.
*/
Ability_Cost abCost = new Ability_Cost("AddCounter<1/M0M1>", cardName, true);
Ability_Activated mana = new Ability_Activated(card, abCost, null) {
private static final long serialVersionUID = 5369063561394954892L;
@Override
public void resolve() {
AllZone.ManaPool.addManaToFloating("G", card);
}
@Override
public boolean canPlayAI() {
return false;
}
};
mana.getRestrictions().setActivationLimit(1);
StringBuilder sbDesc = new StringBuilder();
sbDesc.append(abCost).append("Add G to your mana pool. Activate this ability only once each turn.");
mana.setDescription(sbDesc.toString());
StringBuilder sbStack = new StringBuilder();
sbStack.append(cardName).append(" - add G to your mana pool.");
mana.setStackDescription(sbStack.toString());
card.addSpellAbility(mana);
}//*************** END ************ END **************************
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
{

View File

@@ -31,6 +31,7 @@ public enum Counters {
KI(),
LEVEL(),
LOYALTY(),
M0M1("-0/-1"),
M1M1("-1/-1"),
MANA(),
MINING(),