- Fixed Lord of the Undead, it will now pump zombies on both sides of the battlefield.

This commit is contained in:
jendave
2011-08-06 05:58:05 +00:00
parent 81953b3728
commit 7bcdbe7fe1

View File

@@ -15082,15 +15082,16 @@ public class GameActionUtil {
// for each zone found add +1/+1 to each card
for(int outer = 0; outer < zone.length; outer++) {
CardList creature = new CardList(
zone[outer].getCards());
// CardList creature = new CardList(zone[outer].getCards());
CardList creature = new CardList();
creature.addAll(AllZone.Human_Play.getCards());
creature.addAll(AllZone.Computer_Play.getCards());
creature = creature.getType("Zombie");
for(int i = 0; i < creature.size(); i++) {
c = creature.get(i);
if(c.isCreature()
&& !c.getName().equals(
"Lord of the Undead")) {
&& !c.getName().equals("Lord of the Undead")) {
c.addSemiPermanentAttackBoost(1);
c.addSemiPermanentDefenseBoost(1);
@@ -15110,14 +15111,17 @@ public class GameActionUtil {
int otherLords = 0;
private int countOtherLords(Card c) {
PlayerZone play = AllZone.getZone(Constant.Zone.Play, c.getController());
CardList capts = new CardList(play.getCards());
// PlayerZone play = AllZone.getZone(Constant.Zone.Play, c.getController());
// CardList capts = new CardList(play.getCards());
PlayerZone hPlay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Human);
PlayerZone cPlay = AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer);
CardList capts = new CardList();
capts.addAll(hPlay.getCards());
capts.addAll(cPlay.getCards());
capts = capts.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.getName().equals(
"Lord of the Undead")
&& (c.getType().contains("Zombie") || c.getKeyword().contains(
"Changeling"));
return c.getName().equals("Lord of the Undead")
&& (c.getType().contains("Zombie") || c.getKeyword().contains("Changeling"));
}
});
return capts.size() - 1;