convert Squirrel Mob to stPumpAll keyword.

This commit is contained in:
jendave
2011-08-06 12:32:13 +00:00
parent f796db45ea
commit 70d0bf696f
3 changed files with 4 additions and 42 deletions

View File

@@ -1,8 +1,10 @@
Name:Squirrel Mob Name:Squirrel Mob
ManaCost:1 G G ManaCost:1 G G
Types:Creature Squirrel Types:Creature Squirrel
Text:Squirrel Mob gets +1/+1 for each other Squirrel on the battlefield. Text:no text
PT:2/2 PT:2/2
K:stPumpSelf:Creature:X/X:no Condition:CARDNAME gets +1/+1 for each other Squirrel on the battlefield.
SVar:X:Count$Valid Squirrel.Other
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/squirrel_mob.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/squirrel_mob.jpg
SetInfo:ODY|Rare|http://magiccards.info/scans/en/od/273.jpg SetInfo:ODY|Rare|http://magiccards.info/scans/en/od/273.jpg

View File

@@ -14750,44 +14750,6 @@ public class GameActionUtil {
};//Plague_Rats };//Plague_Rats
public static Command Squirrel_Mob_Other = new Command() {
private static final long serialVersionUID = 5483285906091676339L;
int otherSquirrels = 0;
private int countOtherSquirrels(Card c) {
PlayerZone hplay = AllZone.getZone(
Constant.Zone.Play, AllZone.HumanPlayer);
PlayerZone cplay = AllZone.getZone(
Constant.Zone.Play, AllZone.ComputerPlayer);
CardList squirrels = new CardList(hplay.getCards());
squirrels.addAll(cplay.getCards());
squirrels = squirrels.filter(new CardListFilter()
{
public boolean addCard(Card crd)
{
return (crd.getType().contains("Squirrel") || crd.getKeyword().contains("Changeling"));
}
});
return squirrels.size() - 1;
}
public void execute() {
CardList creature = AllZoneUtil.getCardsInPlay("Squirrel Mob");
for(int i = 0; i < creature.size(); i++) {
Card c = creature.get(i);
otherSquirrels = countOtherSquirrels(c);
c.setOtherAttackBoost(otherSquirrels);
c.setOtherDefenseBoost(otherSquirrels);
}// for inner
}// execute()
};
public static Command Broodwarden = new Command() { public static Command Broodwarden = new Command() {
@@ -17839,7 +17801,6 @@ public class GameActionUtil {
commands.put("Soulsurge_Elemental", Soulsurge_Elemental); commands.put("Soulsurge_Elemental", Soulsurge_Elemental);
commands.put("Sound_the_Call_Wolf", Sound_the_Call_Wolf); commands.put("Sound_the_Call_Wolf", Sound_the_Call_Wolf);
commands.put("Spidersilk_Armor", Spidersilk_Armor); commands.put("Spidersilk_Armor", Spidersilk_Armor);
commands.put("Squirrel_Mob_Other", Squirrel_Mob_Other);
commands.put("Steely_Resolve", Steely_Resolve); commands.put("Steely_Resolve", Steely_Resolve);
commands.put("Student_of_Warfare", Student_of_Warfare); commands.put("Student_of_Warfare", Student_of_Warfare);
commands.put("Svogthos_the_Restless_Tomb", Svogthos_the_Restless_Tomb); commands.put("Svogthos_the_Restless_Tomb", Svogthos_the_Restless_Tomb);

View File

@@ -149,7 +149,6 @@ public class StaticEffects
cardToEffectsList.put("Skywatcher Adept", new String[] {"Skywatcher_Adept"}); cardToEffectsList.put("Skywatcher Adept", new String[] {"Skywatcher_Adept"});
cardToEffectsList.put("Soulsurge Elemental", new String[] {"Soulsurge_Elemental"}); cardToEffectsList.put("Soulsurge Elemental", new String[] {"Soulsurge_Elemental"});
cardToEffectsList.put("Spidersilk Armor", new String[] {"Spidersilk_Armor"}); cardToEffectsList.put("Spidersilk Armor", new String[] {"Spidersilk_Armor"});
cardToEffectsList.put("Squirrel Mob", new String[] {"Squirrel_Mob_Other"});
cardToEffectsList.put("Steely Resolve", new String[] {"Steely_Resolve"}); cardToEffectsList.put("Steely Resolve", new String[] {"Steely_Resolve"});
cardToEffectsList.put("Student of Warfare", new String[]{"Student_of_Warfare"}); cardToEffectsList.put("Student of Warfare", new String[]{"Student_of_Warfare"});
cardToEffectsList.put("Svogthos, the Restless Tomb", new String[] {"Svogthos_the_Restless_Tomb"}); cardToEffectsList.put("Svogthos, the Restless Tomb", new String[] {"Svogthos_the_Restless_Tomb"});