diff --git a/.gitattributes b/.gitattributes index 52ebeb0448d..40c252ab79d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/res/cardsfolder/angry_mob.txt b/res/cardsfolder/angry_mob.txt new file mode 100644 index 00000000000..8f33f7fd82a --- /dev/null +++ b/res/cardsfolder/angry_mob.txt @@ -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 diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 78f88d79e03..ec2c51fa487 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -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()); diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index c8922f63c3d..33df1f97a4b 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -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 getCardToEffectsList()