mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Gemhide Sliver to script.
This commit is contained in:
@@ -1,8 +1,14 @@
|
|||||||
Name:Gemhide Sliver
|
Name:Gemhide Sliver
|
||||||
ManaCost:1 G
|
ManaCost:1 G
|
||||||
Types:Creature Sliver
|
Types:Creature Sliver
|
||||||
Text:All Slivers have "tap: Add one mana of any color to your mana pool."
|
Text:no text
|
||||||
PT:1/1
|
PT:1/1
|
||||||
|
K:stPumpAll:Sliver:0/0/SVar=WMana & SVar=UMana & SVar=BMana & SVar=RMana & SVar=GMana & :no Condition:All Slivers have "Tap: Add one mana of any color to your mana pool."
|
||||||
|
SVar:WMana:AB$Mana | Cost$ T | Produced$ W | Amount$ 1 | SpellDescription$ Add W to your mana pool.
|
||||||
|
SVar:UMana:AB$Mana | Cost$ T | Produced$ U | Amount$ 1 | SpellDescription$ Add U to your mana pool.
|
||||||
|
SVar:BMana:AB$Mana | Cost$ T | Produced$ B | Amount$ 1 | SpellDescription$ Add B to your mana pool.
|
||||||
|
SVar:RMana:AB$Mana | Cost$ T | Produced$ R | Amount$ 1 | SpellDescription$ Add R to your mana pool.
|
||||||
|
SVar:GMana:AB$Mana | Cost$ T | Produced$ G | Amount$ 1 | SpellDescription$ Add G to your mana pool.
|
||||||
SVar:PlayMain1:TRUE
|
SVar:PlayMain1:TRUE
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/gemhide_sliver.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/gemhide_sliver.jpg
|
||||||
|
|||||||
@@ -5669,126 +5669,6 @@ public class GameActionUtil {
|
|||||||
}; // Mul Daya
|
}; // Mul Daya
|
||||||
|
|
||||||
|
|
||||||
//moved to Card.addExtrinsicAbilities
|
|
||||||
/*
|
|
||||||
public static Command Joiner_Adept = new Command() {
|
|
||||||
private static final long serialVersionUID = -2543659953307485051L;
|
|
||||||
|
|
||||||
CardList gloriousAnthemList = new CardList();
|
|
||||||
|
|
||||||
String[] keyword = { "B", "W", "G", "U", "R" };
|
|
||||||
|
|
||||||
final void addMana(Card c) {
|
|
||||||
for(int i = 0; i < keyword.length; i++) {
|
|
||||||
//don't add an extrinsic mana ability if the land can already has the same intrinsic mana ability
|
|
||||||
//eg. "tap: add G"
|
|
||||||
if(!c.getIntrinsicManaAbilitiesDescriptions().contains(
|
|
||||||
keyword[i])) {
|
|
||||||
//c.addExtrinsicKeyword(keyword[i]);
|
|
||||||
SpellAbility mana = new Ability_Mana(c, "T", keyword[i]) {
|
|
||||||
private static final long serialVersionUID = 2384540533244132975L;
|
|
||||||
};
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("T: Add ").append(keyword[i]).append(" to your mana pool.");
|
|
||||||
|
|
||||||
mana.setType("Extrinsic");
|
|
||||||
mana.setDescription(sb.toString());
|
|
||||||
c.addSpellAbility(mana);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final void removeMana(Card c) {
|
|
||||||
c.removeAllExtrinsicManaAbilities();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
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);
|
|
||||||
removeMana(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
// add +1/+1 to cards
|
|
||||||
list.clear();
|
|
||||||
PlayerZone[] zone = getZone("Joiner Adept");
|
|
||||||
|
|
||||||
// for each zone found add +1/+1 to each card
|
|
||||||
for(int outer = 0; outer < zone.length && outer < 1; outer++) // 1
|
|
||||||
// is
|
|
||||||
// a
|
|
||||||
// cheat
|
|
||||||
{
|
|
||||||
CardList creature = new CardList(zone[outer].getCards());
|
|
||||||
creature = creature.getType("Land");
|
|
||||||
|
|
||||||
for(int i = 0; i < creature.size(); i++) {
|
|
||||||
c = creature.get(i);
|
|
||||||
addMana(c);
|
|
||||||
|
|
||||||
gloriousAnthemList.add(c);
|
|
||||||
}// for inner
|
|
||||||
}// for outer
|
|
||||||
}// execute()
|
|
||||||
}; // Muscles_Sliver
|
|
||||||
*/
|
|
||||||
|
|
||||||
public static Command Gemhide_Sliver = new Command() {
|
|
||||||
private static final long serialVersionUID = -2941784982910968772L;
|
|
||||||
|
|
||||||
CardList gloriousAnthemList = new CardList();
|
|
||||||
|
|
||||||
String[] keyword = { "B", "W", "G", "U", "R" };
|
|
||||||
|
|
||||||
final void addMana(Card c) {
|
|
||||||
|
|
||||||
for(int i = 0; i < keyword.length; i++) {
|
|
||||||
if(!c.getIntrinsicManaAbilitiesDescriptions().contains(
|
|
||||||
keyword[i])) {
|
|
||||||
//c.addExtrinsicKeyword(keyword[i]);
|
|
||||||
SpellAbility mana = new Ability_Mana(c, "T", keyword[i]) {
|
|
||||||
private static final long serialVersionUID = -8909660504657778172L;
|
|
||||||
};
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("T: Add ").append(keyword[i]).append(" to your mana pool.");
|
|
||||||
|
|
||||||
mana.setType("Extrinsic");
|
|
||||||
mana.setDescription(sb.toString());
|
|
||||||
c.addSpellAbility(mana);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
final void removeMana(Card c) {
|
|
||||||
c.removeAllExtrinsicManaAbilities();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
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);
|
|
||||||
removeMana(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
// add +1/+1 to cards
|
|
||||||
list.clear();
|
|
||||||
|
|
||||||
CardList creature = AllZoneUtil.getTypeInPlay("Sliver");
|
|
||||||
|
|
||||||
for(int i = 0; i < creature.size(); i++) {
|
|
||||||
c = creature.get(i);
|
|
||||||
addMana(c);
|
|
||||||
|
|
||||||
gloriousAnthemList.add(c);
|
|
||||||
}// for inner
|
|
||||||
}// execute()
|
|
||||||
}; // Gemhide_Sliver
|
|
||||||
|
|
||||||
|
|
||||||
public static Command Elspeth_Emblem = new Command() {
|
public static Command Elspeth_Emblem = new Command() {
|
||||||
|
|
||||||
private static final long serialVersionUID = 7414127991531889390L;
|
private static final long serialVersionUID = 7414127991531889390L;
|
||||||
@@ -7639,7 +7519,7 @@ public class GameActionUtil {
|
|||||||
commands.put("Elspeth_Emblem", Elspeth_Emblem);
|
commands.put("Elspeth_Emblem", Elspeth_Emblem);
|
||||||
|
|
||||||
commands.put("Gaddock_Teeg", Gaddock_Teeg);
|
commands.put("Gaddock_Teeg", Gaddock_Teeg);
|
||||||
commands.put("Gemhide_Sliver", Gemhide_Sliver);
|
//commands.put("Gemhide_Sliver", Gemhide_Sliver);
|
||||||
commands.put("Homarid", Homarid);
|
commands.put("Homarid", Homarid);
|
||||||
commands.put("Iona_Shield_of_Emeria", Iona_Shield_of_Emeria);
|
commands.put("Iona_Shield_of_Emeria", Iona_Shield_of_Emeria);
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class StaticEffects
|
|||||||
cardToEffectsList.put("Coat of Arms", new String[] {"Coat_of_Arms"});
|
cardToEffectsList.put("Coat of Arms", new String[] {"Coat_of_Arms"});
|
||||||
cardToEffectsList.put("Conspiracy", new String[] {"Conspiracy"});
|
cardToEffectsList.put("Conspiracy", new String[] {"Conspiracy"});
|
||||||
cardToEffectsList.put("Gaddock Teeg", new String[] {"Gaddock_Teeg"});
|
cardToEffectsList.put("Gaddock Teeg", new String[] {"Gaddock_Teeg"});
|
||||||
cardToEffectsList.put("Gemhide Sliver", new String[] {"Gemhide_Sliver"});
|
//cardToEffectsList.put("Gemhide Sliver", new String[] {"Gemhide_Sliver"});
|
||||||
|
|
||||||
cardToEffectsList.put("Homarid", new String[] {"Homarid"});
|
cardToEffectsList.put("Homarid", new String[] {"Homarid"});
|
||||||
cardToEffectsList.put("Iona, Shield of Emeria", new String[] {"Iona_Shield_of_Emeria"});
|
cardToEffectsList.put("Iona, Shield of Emeria", new String[] {"Iona_Shield_of_Emeria"});
|
||||||
|
|||||||
Reference in New Issue
Block a user