added Heedless One from Onslaught

This commit is contained in:
jendave
2011-08-06 04:04:54 +00:00
parent 9dd522c6c9
commit 9cc881d6af
4 changed files with 37 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
heedless_one.jpg http://www.wizards.com/global/images/magic/general/heedless_one.jpg
slate_of_ancestry.jpg http://www.wizards.com/global/images/magic/general/slate_of_ancestry.jpg
champions_drake.jpg http://www.wizards.com/global/images/magic/general/champions_drake.jpg
halimar_wavewatch.jpg http://www.wizards.com/global/images/magic/general/halimar_wavewatch.jpg

View File

@@ -1,3 +1,10 @@
Heedless One
3 G
Creature Elf Avatar
Heedless One's power and toughness are each equal to the number of Elves on the battlefield.
1/1
Trample
Slate of Ancestry
4
Artifact

View File

@@ -10584,6 +10584,32 @@ public class GameActionUtil {
}
};
public static Command Heedless_One = new Command() {
private static final long serialVersionUID = -220650457326100804L;
public void execute() {
// get all creatures
CardList list = new CardList();
list.addAll(AllZone.Human_Play.getCards());
list.addAll(AllZone.Computer_Play.getCards());
list = list.getName("Heedless One");
for(int i = 0; i < list.size(); i++) {
Card c = list.get(i);
c.setBaseAttack(countElves(c));
c.setBaseDefense(countElves(c));
}
}// execute()
private int countElves(Card c) {
PlayerZone play = AllZone.getZone(Constant.Zone.Play, c.getController());
CardList elves = new CardList(play.getCards());
elves = elves.getType("Elf");
return elves.size();
}
};
public static Command Kird_Ape = new Command() {
private static final long serialVersionUID = 3448725650293971110L;
@@ -15837,6 +15863,7 @@ public class GameActionUtil {
commands.put("Iona_Shield_of_Emeria", Iona_Shield_of_Emeria);
commands.put("Kor_Duelist", Kor_Duelist);
commands.put("Keldon_Warlord", Keldon_Warlord);
commands.put("Heedless_One", Heedless_One);
//System.out.println("size of commands: " + commands.size());
}

View File

@@ -197,6 +197,7 @@ public class StaticEffects
cardToEffectsList.put("Iona, Shield of Emeria", new String[] {"Iona_Shield_of_Emeria"});
cardToEffectsList.put("Kor Duelist", new String[] {"Kor_Duelist"});
cardToEffectsList.put("Keldon Warlord", new String[] {"Keldon_Warlord"});
cardToEffectsList.put("Heedless One", new String[] {"Heedless_One"});
}
public HashMap<String, String[]> getCardToEffectsList()