mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed Lord of the Undead, it will now pump zombies on both sides of the battlefield.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user