mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Added Gauntlet of Power.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -4108,6 +4108,7 @@ res/cardsfolder/g/gather_the_townsfolk.txt -text
|
|||||||
res/cardsfolder/g/gatherer_of_graces.txt svneol=native#text/plain
|
res/cardsfolder/g/gatherer_of_graces.txt svneol=native#text/plain
|
||||||
res/cardsfolder/g/gatstaf_shepherd_gatstaf_howler.txt -text
|
res/cardsfolder/g/gatstaf_shepherd_gatstaf_howler.txt -text
|
||||||
res/cardsfolder/g/gauntlet_of_might.txt svneol=native#text/plain
|
res/cardsfolder/g/gauntlet_of_might.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/g/gauntlet_of_power.txt -text
|
||||||
res/cardsfolder/g/gavony.txt -text
|
res/cardsfolder/g/gavony.txt -text
|
||||||
res/cardsfolder/g/gavony_ironwright.txt -text
|
res/cardsfolder/g/gavony_ironwright.txt -text
|
||||||
res/cardsfolder/g/gavony_township.txt -text
|
res/cardsfolder/g/gavony_township.txt -text
|
||||||
|
|||||||
11
res/cardsfolder/g/gauntlet_of_power.txt
Normal file
11
res/cardsfolder/g/gauntlet_of_power.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Gauntlet of Power
|
||||||
|
ManaCost:5
|
||||||
|
Types:Artifact
|
||||||
|
K:ETBReplacement:Other:ChooseColor
|
||||||
|
SVar:ChooseColor:DB$ ChooseColor | Defined$ You | AILogic$ MostProminentInComputerDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a color.
|
||||||
|
S:Mode$ Continuous | Affected$ Creature.ChosenColor | AddPower$ 1 | AddToughness$ 1 | Description$ Creatures of the chosen color get +1/+1.
|
||||||
|
T:Mode$ TapsForMana | ValidCard$ Land.Basic | Produced$ ChosenColor | Execute$ TrigMana | TriggerZones$ Battlefield | Static$ True | TriggerDescription$ Whenever a basic land is tapped for mana of the chosen color, its controller adds one mana of that color to his or her mana pool (in addition to the mana the land produces).
|
||||||
|
SVar:TrigMana:AB$ Mana | Cost$ 0 | Produced$ Chosen | Amount$ 1 | Defined$ TriggeredPlayer
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/gauntlet_of_power.jpg
|
||||||
|
Oracle:As Gauntlet of Power enters the battlefield, choose a color.\nCreatures of the chosen color get +1/+1.\nWhenever a basic land is tapped for mana of the chosen color, its controller adds one mana of that color to his or her mana pool . (in addition to the mana the land produces)
|
||||||
|
SetInfo:TSP Rare
|
||||||
@@ -17,7 +17,10 @@
|
|||||||
*/
|
*/
|
||||||
package forge.card.trigger;
|
package forge.card.trigger;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import forge.Card;
|
import forge.Card;
|
||||||
|
import forge.card.MagicColor;
|
||||||
import forge.card.spellability.SpellAbility;
|
import forge.card.spellability.SpellAbility;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,6 +61,20 @@ public class TriggerTapsForMana extends Trigger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.mapParams.containsKey("Produced")) {
|
||||||
|
Object prod = runParams2.get("Produced");
|
||||||
|
if (prod == null || !(prod instanceof String)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
String produced = (String) prod;
|
||||||
|
if ("ChosenColor".equals(mapParams.get("Produced"))) {
|
||||||
|
List<String> colors = this.getHostCard().getChosenColor();
|
||||||
|
if (colors.isEmpty() || !produced.contains(MagicColor.toShortString(colors.get(0)))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user