mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
*Added Favor of the Mighty
*Fixed Soulless One LQ pic url
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
8
res/cardsfolder/favor_of_the_mighty.txt
Normal file
8
res/cardsfolder/favor_of_the_mighty.txt
Normal file
@@ -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
|
||||
@@ -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
|
||||
@@ -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 :
|
||||
|
||||
@@ -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"});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user