mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Improved checkCreatureSacrificeCost.
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
Name:Mountain Titan
|
Name:Mountain Titan
|
||||||
ManaCost:2 B R
|
ManaCost:2 B R
|
||||||
Types:Creature Giant
|
Types:Creature Giant
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:2/2
|
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.
|
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: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:TrigPutCounter:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
|
||||||
SVar:BuffedBy:Card.Black
|
SVar:BuffedBy:Card.Black
|
||||||
SVar:Rarity:Rare
|
SVar:RemAIDeck:True
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg
|
SVar:Rarity:Rare
|
||||||
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/377.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg
|
||||||
Oracle:{1}{R}{R}: Until end of turn, whenever you cast a black spell, put a +1/+1 counter on Mountain Titan.
|
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
|
End
|
||||||
@@ -84,6 +84,17 @@ public class CostUtil {
|
|||||||
if (sac.getThis() && source.isCreature()) {
|
if (sac.getThis() && source.isCreature()) {
|
||||||
return false;
|
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;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user