- Added Harvest Mage (see http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=14167 for existing issue that is more noticeable with Harvest Mage)

This commit is contained in:
moomarc
2014-03-31 13:25:29 +00:00
parent 156c0c1a4f
commit be3661edee
3 changed files with 21 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -5782,6 +5782,7 @@ forge-gui/res/cardsfolder/h/harsh_justice.txt -text
forge-gui/res/cardsfolder/h/harsh_mercy.txt -text
forge-gui/res/cardsfolder/h/haru_onna.txt svneol=native#text/plain
forge-gui/res/cardsfolder/h/harvest_gwyllion.txt svneol=native#text/plain
forge-gui/res/cardsfolder/h/harvest_mage.txt -text
forge-gui/res/cardsfolder/h/harvest_pyre.txt -text
forge-gui/res/cardsfolder/h/harvest_wurm.txt -text
forge-gui/res/cardsfolder/h/harvester_druid.txt svneol=native#text/plain

View File

@@ -593,7 +593,15 @@ public class AbilityManaPart implements java.io.Serializable {
}
if (manaReplace.startsWith("Any")) {
// Replace any type and amount
return manaReplace.split("->")[1];
String replaced = manaReplace.split("->")[1];
if (replaced.equals("Any")) {
byte rs = MagicColor.GREEN;
if (act != null) {
rs = act.getController().chooseColor("Choose a color", sa, ColorSet.fromMask(MagicColor.ALL_COLORS));
}
replaced = MagicColor.toShortString(rs);
}
return replaced;
}
final Pattern splitter = Pattern.compile("->");
// Replace any type

View File

@@ -0,0 +1,11 @@
Name:Harvest Mage
ManaCost:G
Types:Creature Human Spellshaper
PT:1/1
A:AB$ Effect | Cost$ G T Discard<1/Card> | ReplacementEffects$ HarvestReplacement | SVars$ HarvestProduce | References$ HarvestReplacement,HarvestProduce | AILogic$ RedirectSpellDamageFromPlayer | Stackable$ False | SpellDescription$ Until end of turn, if you tap a land for mana, it produces one mana of a color of your choice instead of any other type and amount.
SVar:HarvestReplacement:Event$ ProduceMana | ActiveZones$ Command | ValidCard$ Land.YouCtrl | ManaReplacement$ HarvestProduce | Description$ If you tap a land for mana, it produces one mana of a color of your choice instead of any other type and amount.
SVar:HarvestProduce:Any->Any
SVar:RemAIDeck:True
SVar:NonStackingEffect:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/harvest_mage.jpg
Oracle:{G}, {T}, Discard a card: Until end of turn, if you tap a land for mana, it produces one mana of a color of your choice instead of any other type and amount.