mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Privileged Position to stPumpAll keyword
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
Name:Privileged Position
|
Name:Privileged Position
|
||||||
ManaCost:2 GW GW GW
|
ManaCost:2 GW GW GW
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:Other permanents you control can't be the targets of spells or abilities your opponents control.
|
Text:no text
|
||||||
|
K:stPumpAll:Permanent.Other+YouCtrl:0/0/CARDNAME can't be the target of spells or abilities your opponents control.:No Condition:Other permanents you control can't be the targets of spells or abilities your opponents control.
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/privileged_position.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/privileged_position.jpg
|
||||||
SetInfo:RAV|Rare|http://magiccards.info/scans/en/rav/251.jpg
|
SetInfo:RAV|Rare|http://magiccards.info/scans/en/rav/251.jpg
|
||||||
|
|||||||
@@ -15318,71 +15318,6 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public static Command Privileged_Position = new Command() {
|
|
||||||
private static final long serialVersionUID = -6677858046910868126L;
|
|
||||||
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.removeExtrinsicKeyword("CARDNAME can't be the target of spells or abilities your opponents control.");
|
|
||||||
}
|
|
||||||
cList.clear();
|
|
||||||
PlayerZone[] zone = getZone("Privileged Position");
|
|
||||||
|
|
||||||
// for each zone found add +1/+1 to each card
|
|
||||||
for(int outer = 0; outer < zone.length; outer++) {
|
|
||||||
CardList perms = new CardList(
|
|
||||||
zone[outer].getCards());
|
|
||||||
|
|
||||||
for(int i = 0; i < perms.size(); i++) {
|
|
||||||
c = perms.get(i);
|
|
||||||
if(c.isPermanent()
|
|
||||||
&& !c.getName().equals(
|
|
||||||
"Privileged Position")
|
|
||||||
&& !c.getExtrinsicKeyword().contains(
|
|
||||||
"CARDNAME can't be the target of spells or abilities your opponents control.")) {
|
|
||||||
c.addExtrinsicKeyword("CARDNAME can't be the target of spells or abilities your opponents control.");
|
|
||||||
gloriousAnthemList.add(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // for
|
|
||||||
} // for
|
|
||||||
|
|
||||||
}// execute()
|
|
||||||
|
|
||||||
}; //Priviliged_Position
|
|
||||||
|
|
||||||
public static Command Privileged_Position_Other = new Command() {
|
|
||||||
private static final long serialVersionUID = -220264241686906985L;
|
|
||||||
int otherPPs = 0;
|
|
||||||
|
|
||||||
private int countOtherPPs(Card c) {
|
|
||||||
PlayerZone play = AllZone.getZone(
|
|
||||||
Constant.Zone.Play, c.getController());
|
|
||||||
CardList pps = new CardList(play.getCards());
|
|
||||||
pps = pps.getName("Privileged Position");
|
|
||||||
return pps.size() - 1;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
CardList pp = AllZoneUtil.getCardsInPlay("Privileged Position");
|
|
||||||
|
|
||||||
for(int i = 0; i < pp.size(); i++) {
|
|
||||||
Card c = pp.get(i);
|
|
||||||
otherPPs = countOtherPPs(c);
|
|
||||||
if(otherPPs > 0) c.addExtrinsicKeyword("CARDNAME can't be the target of spells or abilities your opponents control.");
|
|
||||||
//else if
|
|
||||||
}// for inner
|
|
||||||
}// execute()
|
|
||||||
|
|
||||||
}; //Privileged_Position_Other
|
|
||||||
|
|
||||||
public static Command Broodwarden = new Command() {
|
public static Command Broodwarden = new Command() {
|
||||||
|
|
||||||
private static final long serialVersionUID = -9033688979680507210L;
|
private static final long serialVersionUID = -9033688979680507210L;
|
||||||
@@ -19381,8 +19316,6 @@ public class GameActionUtil {
|
|||||||
commands.put("Master_of_Etherium_Other", Master_of_Etherium_Other);
|
commands.put("Master_of_Etherium_Other", Master_of_Etherium_Other);
|
||||||
commands.put("Squirrel_Mob_Other", Squirrel_Mob_Other);
|
commands.put("Squirrel_Mob_Other", Squirrel_Mob_Other);
|
||||||
commands.put("Relentless_Rats_Other", Relentless_Rats_Other);
|
commands.put("Relentless_Rats_Other", Relentless_Rats_Other);
|
||||||
commands.put("Privileged_Position", Privileged_Position);
|
|
||||||
commands.put("Privileged_Position_Other", Privileged_Position_Other);
|
|
||||||
commands.put("Broodwarden", Broodwarden);
|
commands.put("Broodwarden", Broodwarden);
|
||||||
commands.put("Elvish_Archdruid_Pump", Elvish_Archdruid_Pump);
|
commands.put("Elvish_Archdruid_Pump", Elvish_Archdruid_Pump);
|
||||||
commands.put("Elvish_Archdruid_Other", Elvish_Archdruid_Other);
|
commands.put("Elvish_Archdruid_Other", Elvish_Archdruid_Other);
|
||||||
|
|||||||
@@ -104,7 +104,6 @@ public class StaticEffects
|
|||||||
cardToEffectsList.put("Daru Warchief", new String[] {"Daru_Warchief"});
|
cardToEffectsList.put("Daru Warchief", new String[] {"Daru_Warchief"});
|
||||||
cardToEffectsList.put("Squirrel Mob", new String[] {"Squirrel_Mob_Other"});
|
cardToEffectsList.put("Squirrel Mob", new String[] {"Squirrel_Mob_Other"});
|
||||||
cardToEffectsList.put("Relentless Rats", new String[] {"Relentless_Rats_Other"});
|
cardToEffectsList.put("Relentless Rats", new String[] {"Relentless_Rats_Other"});
|
||||||
cardToEffectsList.put("Privileged Position", new String[] {"Privileged_Position", "Privileged_Position_Other"});
|
|
||||||
cardToEffectsList.put("Broodwarden", new String[] {"Broodwarden"});
|
cardToEffectsList.put("Broodwarden", new String[] {"Broodwarden"});
|
||||||
cardToEffectsList.put("Elvish Archdruid", new String[] {"Elvish_Archdruid_Pump", "Elvish_Archdruid_Other"});
|
cardToEffectsList.put("Elvish Archdruid", new String[] {"Elvish_Archdruid_Pump", "Elvish_Archdruid_Other"});
|
||||||
cardToEffectsList.put("Knight Exemplar", new String[] {"Knight_Exemplar_Pump", "Knight_Exemplar_Other"});
|
cardToEffectsList.put("Knight Exemplar", new String[] {"Knight_Exemplar_Pump", "Knight_Exemplar_Other"});
|
||||||
|
|||||||
Reference in New Issue
Block a user