mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
add Angry Mob (from The Dark)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/angry_mob.txt
Normal file
9
res/cardsfolder/angry_mob.txt
Normal 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
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user