- The AI will once again pay the unless cost of Fallow Wurm and friends.

- Converted Avatar of Discord to unless cost.
This commit is contained in:
Sloth
2013-04-05 21:32:21 +00:00
parent ede20d7001
commit 34fdc57c2c
2 changed files with 3 additions and 6 deletions

View File

@@ -3,11 +3,8 @@ ManaCost:BR BR BR
Types:Creature Avatar Types:Creature Avatar
PT:5/3 PT:5/3
K:Flying K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDiscard | TriggerDescription$ When CARDNAME enters the battlefield, sacrifice it unless you discard two cards. T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ DBSacSelf | TriggerDescription$ When CARDNAME enters the battlefield, sacrifice it unless you discard two cards.
SVar:TrigDiscard:AB$ Discard | Cost$ 0 | NumCards$ 2 | DiscardValid$ Card | Mode$ TgtChoose | Optional$ True | RememberDiscarded$ True | SubAbility$ DBSacSelf SVar:DBSacSelf:DB$ Sacrifice | Cost$ 0 | Defined$ Self | UnlessCost$ Discard<2/Card> | UnlessPayer$ You
SVar:DBSacSelf:DB$ Sacrifice | Cost$ 0 | Defined$ Self | SubAbility$ DBCleanup | ConditionCheckSVar$ X | ConditionSVarCompare$ LT2 | References$ X
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
SVar:NeedsToPlayVar:Y GE3 SVar:NeedsToPlayVar:Y GE3
SVar:Y:Count$InYourHand SVar:Y:Count$InYourHand
SVar:Picture:http://www.wizards.com/global/images/magic/general/avatar_of_discord.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/avatar_of_discord.jpg

View File

@@ -417,7 +417,7 @@ public class ComputerUtilCost {
if (canPayCost(ability, payer) if (canPayCost(ability, payer)
&& checkLifeCost(payer, ability.getPayCosts(), source, 4, sa) && checkLifeCost(payer, ability.getPayCosts(), source, 4, sa)
&& checkDamageCost(payer, ability.getPayCosts(), source, 4) && checkDamageCost(payer, ability.getPayCosts(), source, 4)
&& checkDiscardCost(payer, ability.getPayCosts(), source) && (isMine || checkDiscardCost(payer, ability.getPayCosts(), source))
&& (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2) && (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2)
&& (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2) && (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2)
&& (!source.getName().equals("Breaking Point") || payer.getCreaturesInPlay().size() > 1) && (!source.getName().equals("Breaking Point") || payer.getCreaturesInPlay().size() > 1)