diff --git a/res/cardsfolder/m/mountain_titan.txt b/res/cardsfolder/m/mountain_titan.txt index dd7426e4106..a1378f557c9 100644 --- a/res/cardsfolder/m/mountain_titan.txt +++ b/res/cardsfolder/m/mountain_titan.txt @@ -1,14 +1,15 @@ -Name:Mountain Titan -ManaCost:2 B R -Types:Creature Giant -Text:no text -PT:2/2 -A:AB$ Animate | Cost$ 1 R R | Triggers$ TrigSpellCast | sVars$ TrigPutCounter | SpellDescription$ Until end of turn, whenever you cast a black spell, put a +1/+1 counter on CARDNAME. -SVar:TrigSpellCast:Mode$ SpellCast | ValidCard$ Card.Black | ValidActivatingPlayer$ You | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a black spell, put a +1/+1 counter on CARDNAME. -SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 -SVar:BuffedBy:Card.Black -SVar:Rarity:Rare -SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg -SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/377.jpg -Oracle:{1}{R}{R}: Until end of turn, whenever you cast a black spell, put a +1/+1 counter on Mountain Titan. +Name:Mountain Titan +ManaCost:2 B R +Types:Creature Giant +Text:no text +PT:2/2 +A:AB$ Animate | Cost$ 1 R R | Triggers$ TrigSpellCast | sVars$ TrigPutCounter | SpellDescription$ Until end of turn, whenever you cast a black spell, put a +1/+1 counter on CARDNAME. +SVar:TrigSpellCast:Mode$ SpellCast | ValidCard$ Card.Black | ValidActivatingPlayer$ You | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a black spell, put a +1/+1 counter on CARDNAME. +SVar:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 +SVar:BuffedBy:Card.Black +SVar:RemAIDeck:True +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg +SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/377.jpg +Oracle:{1}{R}{R}: Until end of turn, whenever you cast a black spell, put a +1/+1 counter on Mountain Titan. End \ No newline at end of file diff --git a/src/main/java/forge/card/cost/CostUtil.java b/src/main/java/forge/card/cost/CostUtil.java index c4c2fa60598..1bef966f279 100644 --- a/src/main/java/forge/card/cost/CostUtil.java +++ b/src/main/java/forge/card/cost/CostUtil.java @@ -84,6 +84,17 @@ public class CostUtil { if (sac.getThis() && source.isCreature()) { return false; } + final String type = sac.getType(); + + if (type.equals("CARDNAME")) { + continue; + } + + CardList typeList = AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield); + typeList = typeList.getValidCards(type.split(","), source.getController(), source); + if (ComputerUtil.getCardPreference(source, "SacCost", typeList) == null) { + return false; + } } } return true;