diff --git a/.gitattributes b/.gitattributes index 2f61573ec4e..9cf229d54f7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2326,6 +2326,7 @@ res/cardsfolder/fault_line.txt -text svneol=native#text/plain res/cardsfolder/fault_riders.txt svneol=native#text/plain res/cardsfolder/faultgrinder.txt -text svneol=native#text/plain res/cardsfolder/fauna_shaman.txt -text svneol=native#text/plain +res/cardsfolder/favor_of_the_mighty.txt -text svneol=native#text/plain res/cardsfolder/favor_of_the_overbeing.txt -text svneol=native#text/plain res/cardsfolder/fear.txt -text svneol=native#text/plain res/cardsfolder/feast_of_blood.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/favor_of_the_mighty.txt b/res/cardsfolder/favor_of_the_mighty.txt new file mode 100644 index 00000000000..78829e674b8 --- /dev/null +++ b/res/cardsfolder/favor_of_the_mighty.txt @@ -0,0 +1,8 @@ +Name:Favor of the Mighty +ManaCost:1 W +Types:Tribal Enchantment Giant +Text:Each creature with the highest converted mana cost has protection from all colors. +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/favor_of_the_mighty.jpg +End +#Uses card-specific code \ No newline at end of file diff --git a/res/cardsfolder/soulless_one.txt b/res/cardsfolder/soulless_one.txt index 9b567a430ee..072a8836a3e 100644 --- a/res/cardsfolder/soulless_one.txt +++ b/res/cardsfolder/soulless_one.txt @@ -7,6 +7,6 @@ K:stSetPT:Count$TypeOnBattlefield.Zombie/Plus.Y:Count$TypeOnBattlefield.Zombie/P #SVar:X:Count$TypeOnBattlefield.Zombie/Plus.Y SVar:Y:Count$TypeInAllYards.Zombie SVar:Rarity:Uncommon -SVar:Picture:http://www.wizards.com/global/images/magic/general/soulless_academy.jpg +SVar:Picture:http://www.wizards.com/global/images/magic/general/soulless_one.jpg SetInfo:ONS|Uncommon|http://magiccards.info/scans/en/on/171.jpg End \ No newline at end of file diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 90d391ee224..8aba2cc03fe 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -5533,6 +5533,50 @@ public class GameActionUtil { } }// execute() }; + + public static Command Favor_of_the_Mighty = new Command() { + private CardList pumped = new CardList(); + public void execute() { + //Reset old cards + for(Card c : pumped) + { + c.removeIntrinsicKeyword("Protection from white"); + c.removeIntrinsicKeyword("Protection from blue"); + c.removeIntrinsicKeyword("Protection from black"); + c.removeIntrinsicKeyword("Protection from red"); + c.removeIntrinsicKeyword("Protection from green"); + } + pumped.clear(); + + //Find creature(s) with highest cmc + int maxCMC = -1; + boolean keepLooping = true; + CardList creats = AllZoneUtil.getCreaturesInPlay(); + for(Card c : creats) + { + if(c.getCMC() > maxCMC) + { + pumped.clear(); + pumped.add(c); + maxCMC = c.getCMC(); + } + else if(c.getCMC() == maxCMC) + { + pumped.add(c); + } + } + + //Pump new cards + for(Card c : pumped) + { + c.addIntrinsicKeyword("Protection from white"); + c.addIntrinsicKeyword("Protection from blue"); + c.addIntrinsicKeyword("Protection from black"); + c.addIntrinsicKeyword("Protection from red"); + c.addIntrinsicKeyword("Protection from green"); + } + } + }; public static Command Koth_Emblem = new Command() { @@ -7433,7 +7477,7 @@ public class GameActionUtil { commands.put("Coat_of_Arms", Coat_of_Arms); commands.put("Conspiracy", Conspiracy); commands.put("Elspeth_Emblem", Elspeth_Emblem); - + commands.put("Favor_of_the_Mighty",Favor_of_the_Mighty); commands.put("Gaddock_Teeg", Gaddock_Teeg); commands.put("Homarid", Homarid); commands.put("Iona_Shield_of_Emeria", Iona_Shield_of_Emeria); @@ -7459,7 +7503,7 @@ public class GameActionUtil { ///The commands above are in alphabetical order by cardname. } - + public static Command stAnimate = new Command() { /** stAnimate * Syntax:[ k[0] stAnimate[All][Self][Enchanted] : k[1] AnimateValid : diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index b0c9b391fee..4e382bff948 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -26,6 +26,7 @@ public class StaticEffects cardToEffectsList.put("Avatar", new String[] {"Ajani_Avatar_Token"}); cardToEffectsList.put("Coat of Arms", new String[] {"Coat_of_Arms"}); cardToEffectsList.put("Conspiracy", new String[] {"Conspiracy"}); + cardToEffectsList.put("Favor of the Mighty", new String[] {"Favor_of_the_Mighty"}); cardToEffectsList.put("Gaddock Teeg", new String[] {"Gaddock_Teeg"}); //cardToEffectsList.put("Gemhide Sliver", new String[] {"Gemhide_Sliver"});