mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add Wall of Roots (from Mirage)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_putrid_flesh.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/wall_of_razors.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_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_spears.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/wall_of_stone.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
|
res/cardsfolder/wall_of_swords.txt -text svneol=native#text/plain
|
||||||
|
|||||||
10
res/cardsfolder/wall_of_roots.txt
Normal file
10
res/cardsfolder/wall_of_roots.txt
Normal 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
|
||||||
@@ -1776,7 +1776,7 @@ public class Card extends MyObservable {
|
|||||||
+ getCounters(Counters.P1P1) + (2*getCounters(Counters.P1P2))
|
+ getCounters(Counters.P1P1) + (2*getCounters(Counters.P1P2))
|
||||||
- getCounters(Counters.M1M1) + getCounters(Counters.P0P1 )
|
- getCounters(Counters.M1M1) + getCounters(Counters.P0P1 )
|
||||||
- getCounters(Counters.P0M1) - (2*getCounters(Counters.P0M2))
|
- getCounters(Counters.P0M1) - (2*getCounters(Counters.P0M2))
|
||||||
+ (2*getCounters(Counters.P2P2));
|
+ (2*getCounters(Counters.P2P2)) - getCounters(Counters.M0M1);
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13707,6 +13707,40 @@ public class CardFactory_Creatures {
|
|||||||
}//*************** END ************ END **************************
|
}//*************** 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)
|
if(hasKeyword(card, "Level up") != -1 && hasKeyword(card, "maxLevel") != -1)
|
||||||
{
|
{
|
||||||
int n = hasKeyword(card, "Level up");
|
int n = hasKeyword(card, "Level up");
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public enum Counters {
|
|||||||
KI(),
|
KI(),
|
||||||
LEVEL(),
|
LEVEL(),
|
||||||
LOYALTY(),
|
LOYALTY(),
|
||||||
|
M0M1("-0/-1"),
|
||||||
M1M1("-1/-1"),
|
M1M1("-1/-1"),
|
||||||
MANA(),
|
MANA(),
|
||||||
MINING(),
|
MINING(),
|
||||||
|
|||||||
Reference in New Issue
Block a user