mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
convert Zuberi, Golden Feather to stPumpAll keyword
This commit is contained in:
@@ -4,6 +4,7 @@ Types:Legendary Creature Griffin
|
||||
Text:Other Griffin creatures get +1/+1.
|
||||
PT:3/3
|
||||
K:Flying
|
||||
K:stPumpAll:Creature.Griffin+Other:1/1:No Condition:Other Griffin creatures get +1/+1.
|
||||
SVar:PlayMain1:TRUE
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/zuberi_golden_feather.jpg
|
||||
|
||||
@@ -13283,41 +13283,7 @@ public class GameActionUtil {
|
||||
}// execute()
|
||||
};
|
||||
|
||||
public static Command Sun_Quan = new Command() {
|
||||
|
||||
private static final long serialVersionUID = -2379786355503597363L;
|
||||
CardList gloriousAnthemList = new CardList();
|
||||
|
||||
public void execute() {
|
||||
String keyword = "Horsemanship";
|
||||
|
||||
CardList list = gloriousAnthemList;
|
||||
Card c;
|
||||
// reset all cards in list - aka "old" cards
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
c = list.get(i);
|
||||
c.removeExtrinsicKeyword(keyword);
|
||||
}
|
||||
|
||||
list.clear();
|
||||
PlayerZone[] zone = getZone("Sun Quan, Lord of Wu");
|
||||
|
||||
for(int outer = 0; outer < zone.length; outer++) {
|
||||
CardList creature = new CardList(
|
||||
zone[outer].getCards());
|
||||
creature = creature.getType("Creature");
|
||||
|
||||
for(int i = 0; i < creature.size(); i++) {
|
||||
c = creature.get(i);
|
||||
if(!c.getKeyword().contains(keyword)) {
|
||||
c.addExtrinsicKeyword(keyword);
|
||||
gloriousAnthemList.add(c);
|
||||
}
|
||||
}// for inner
|
||||
}// for outer
|
||||
}// execute()
|
||||
}; //Sun Quan
|
||||
|
||||
|
||||
public static Command Kinsbaile_Cavalier = new Command() {
|
||||
private static final long serialVersionUID = -4124745123035715658L;
|
||||
|
||||
@@ -15895,11 +15861,7 @@ public class GameActionUtil {
|
||||
int artifacts = 0;
|
||||
|
||||
public void execute() {
|
||||
CardList creature = new CardList();
|
||||
creature.addAll(AllZone.Human_Play.getCards());
|
||||
creature.addAll(AllZone.Computer_Play.getCards());
|
||||
|
||||
creature = creature.getName("Phylactery Lich");
|
||||
CardList creature = AllZoneUtil.getCardsInPlay("Phylactery Lich");
|
||||
|
||||
for(int i = 0; i < creature.size(); i++) {
|
||||
Card c = creature.get(i);
|
||||
@@ -15932,11 +15894,7 @@ public class GameActionUtil {
|
||||
int enchantments = 0;
|
||||
|
||||
public void execute() {
|
||||
CardList creature = new CardList();
|
||||
creature.addAll(AllZone.Human_Play.getCards());
|
||||
creature.addAll(AllZone.Computer_Play.getCards());
|
||||
|
||||
creature = creature.getName("Tethered Griffin");
|
||||
CardList creature = AllZoneUtil.getCardsInPlay("Tethered Griffin");
|
||||
|
||||
for(int i = 0; i < creature.size(); i++) {
|
||||
Card c = creature.get(i);
|
||||
@@ -15964,9 +15922,7 @@ public class GameActionUtil {
|
||||
private static final long serialVersionUID = 8669404698350637963L;
|
||||
|
||||
public void execute() {
|
||||
CardList list = new CardList();
|
||||
list.addAll(AllZone.Human_Play.getCards());
|
||||
list.addAll(AllZone.Computer_Play.getCards());
|
||||
CardList list = AllZoneUtil.getCardsInPlay();
|
||||
|
||||
list = list.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
@@ -15990,9 +15946,7 @@ public class GameActionUtil {
|
||||
int islands = 0;
|
||||
|
||||
public void execute() {
|
||||
CardList creature = new CardList();
|
||||
creature.addAll(AllZone.Human_Play.getCards());
|
||||
creature.addAll(AllZone.Computer_Play.getCards());
|
||||
CardList creature = AllZoneUtil.getCardsInPlay();
|
||||
|
||||
creature = creature.filter(new CardListFilter() {
|
||||
public boolean addCard(Card c) {
|
||||
@@ -16087,48 +16041,6 @@ public class GameActionUtil {
|
||||
}//execute()
|
||||
};
|
||||
|
||||
public static Command Zuberi = new Command() {
|
||||
private static final long serialVersionUID = -6283266522827930762L;
|
||||
CardList gloriousAnthemList = new CardList();
|
||||
|
||||
public void execute() {
|
||||
|
||||
CardList cList = gloriousAnthemList;
|
||||
Card c;
|
||||
|
||||
for(int i = 0; i < cList.size(); i++) {
|
||||
c = cList.get(i);
|
||||
c.addSemiPermanentAttackBoost(-1);
|
||||
c.addSemiPermanentDefenseBoost(-1);
|
||||
}
|
||||
cList.clear();
|
||||
PlayerZone[] zone = getZone("Zuberi, Golden Feather");
|
||||
|
||||
// for each zone found add +1/+1 to each card
|
||||
for(int outer = 0; outer < zone.length; outer++) {
|
||||
CardList creature = new CardList();
|
||||
creature.addAll(AllZone.Human_Play.getCards());
|
||||
creature.addAll(AllZone.Computer_Play.getCards());
|
||||
creature = creature.getType("Griffin");
|
||||
|
||||
for(int i = 0; i < creature.size(); i++) {
|
||||
c = creature.get(i);
|
||||
if(c.isCreature()
|
||||
&& !c.getName().equals(
|
||||
"Zuberi, Golden Feather")) {
|
||||
c.addSemiPermanentAttackBoost(1);
|
||||
c.addSemiPermanentDefenseBoost(1);
|
||||
gloriousAnthemList.add(c);
|
||||
}
|
||||
|
||||
} // for
|
||||
} // for
|
||||
|
||||
}// execute()
|
||||
|
||||
|
||||
};
|
||||
|
||||
public static Command Master_of_Etherium_Other = new Command() {
|
||||
private static final long serialVersionUID = -3325892185484133742L;
|
||||
|
||||
@@ -19125,7 +19037,6 @@ public class GameActionUtil {
|
||||
|
||||
commands.put("Yavimaya_Enchantress", Yavimaya_Enchantress);
|
||||
|
||||
commands.put("Zuberi", Zuberi);
|
||||
commands.put("Zulaport_Enforcer", Zulaport_Enforcer);
|
||||
|
||||
///The commands above are in alphabetical order by cardname. The cammands.put() below need to be filed above
|
||||
@@ -19209,8 +19120,6 @@ public class GameActionUtil {
|
||||
|
||||
commands.put("Goblin_Warchief", Goblin_Warchief);
|
||||
commands.put("Undead_Warchief", Undead_Warchief);
|
||||
|
||||
commands.put("Sun_Quan", Sun_Quan);
|
||||
|
||||
commands.put("Rolling_Stones", Rolling_Stones);
|
||||
commands.put("Kinsbaile_Cavalier", Kinsbaile_Cavalier);
|
||||
|
||||
@@ -95,7 +95,6 @@ public class StaticEffects
|
||||
cardToEffectsList.put("Aura Gnarlid", new String[] {"Aura_Gnarlid"} );
|
||||
cardToEffectsList.put("Kor Spiritdancer", new String[] {"Kor_Spiritdancer"});
|
||||
cardToEffectsList.put("Knight of the Reliquary", new String[] {"Knight_of_the_Reliquary"});
|
||||
cardToEffectsList.put("Zuberi, Golden Feather", new String[] {"Zuberi"});
|
||||
cardToEffectsList.put("Loxodon Punisher", new String[] {"Loxodon_Punisher"});
|
||||
cardToEffectsList.put("Goblin Gaveleer", new String[] {"Goblin_Gaveleer"});
|
||||
cardToEffectsList.put("Master of Etherium", new String[] {"Master_of_Etherium", "Master_of_Etherium_Pump", "Master_of_Etherium_Other"});
|
||||
@@ -157,7 +156,6 @@ public class StaticEffects
|
||||
cardToEffectsList.put("Steely Resolve", new String[] {"Steely_Resolve"});
|
||||
cardToEffectsList.put("That Which Was Taken", new String[] {"That_Which_Was_Taken"});
|
||||
cardToEffectsList.put("Rolling Stones", new String[] {"Rolling_Stones"});
|
||||
cardToEffectsList.put("Sun Quan, Lord of Wu", new String[] {"Sun_Quan"});
|
||||
cardToEffectsList.put("Kinsbaile Cavalier", new String[] {"Kinsbaile_Cavalier"});
|
||||
cardToEffectsList.put("Wren's Run Packmaster", new String[] {"Wrens_Run_Packmaster"});
|
||||
cardToEffectsList.put("Gemhide Sliver", new String[] {"Gemhide_Sliver"});
|
||||
|
||||
Reference in New Issue
Block a user