add Angry Mob (from The Dark)

This commit is contained in:
jendave
2011-08-06 08:33:44 +00:00
parent d8028d6865
commit f6246316f7
4 changed files with 39 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -155,6 +155,7 @@ res/cardsfolder/angelic_wall.txt -text svneol=native#text/plain
res/cardsfolder/angels_mercy.txt -text svneol=native#text/plain
res/cardsfolder/angelsong.txt -text svneol=native#text/plain
res/cardsfolder/anger.txt -text svneol=native#text/plain
res/cardsfolder/angry_mob.txt -text svneol=native#text/plain
res/cardsfolder/animate_artifact.txt -text svneol=native#text/plain
res/cardsfolder/animate_dead.txt -text svneol=native#text/plain
res/cardsfolder/animate_land.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Angry Mob
ManaCost:2 W W
Types:Creature Human
Text:As long as it's your turn, Angry Mob's power and toughness are each equal to 2 plus the number of Swamps your opponents control. As long as it's not your turn, Angry Mob's power and toughness are each 2.
PT:2/2
K:Trample
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/angry_mob.jpg
End

View File

@@ -11658,6 +11658,33 @@ public class GameActionUtil {
}//if
}// execute()
};
/**
* stores the Command
*/
public static Command Angry_Mob = new Command() {
private static final long serialVersionUID = 4129359648989610278L;
public void execute() {
String player = AllZone.Phase.getActivePlayer();
// get all creatures
CardList mobs = AllZoneUtil.getCardsInPlay("Angry Mob");
for(int i = 0; i < mobs.size(); i++) {
Card c = mobs.get(i);
if(player.equals(c.getController())) {
String opp = AllZone.GameAction.getOpponent(player);
int boost = AllZoneUtil.getPlayerTypeInPlay(opp, "Swamp").size();
c.setBaseAttack(2+boost);
c.setBaseDefense(2+boost);
}
else {
c.setBaseAttack(2);
c.setBaseDefense(2);
}
}
}// execute()
};
public static Command Absolute_Grace = new Command() {
private static final long serialVersionUID = -6904191523315339355L;
@@ -20785,6 +20812,7 @@ public class GameActionUtil {
commands.put("Heedless_One", Heedless_One);
commands.put("Omnath", Omnath);
commands.put("Arena_of_the_Ancients", Arena_of_the_Ancients);
commands.put("Angry_Mob", Angry_Mob);
//System.out.println("size of commands: " + commands.size());

View File

@@ -230,6 +230,7 @@ public class StaticEffects
cardToEffectsList.put("Heedless One", new String[] {"Heedless_One"});
cardToEffectsList.put("Omnath, Locus of Mana", new String[] {"Omnath"});
cardToEffectsList.put("Arena of the Ancients", new String[] {"Arena_of_the_Ancients"});
cardToEffectsList.put("Angry Mob", new String[] {"Angry_Mob"});
}
public HashMap<String, String[]> getCardToEffectsList()