mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Improved checkCreatureSacrificeCost.
This commit is contained in:
@@ -7,6 +7,7 @@ A:AB$ Animate | Cost$ 1 R R | Triggers$ TrigSpellCast | sVars$ TrigPutCounter |
|
|||||||
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:RemAIDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/mountain_titan.jpg
|
||||||
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/377.jpg
|
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/377.jpg
|
||||||
|
|||||||
@@ -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