- Preventing the AI from spending Phyrexian mana on some abilities on CMC 1 cards with Phyrexian-only mana that are not typically wise to spend Phyrexian on and the AI would generally use the possibility at inappropriate times.

This commit is contained in:
Agetian
2017-01-21 14:30:02 +00:00
parent 68641a0cfe
commit e864600058
6 changed files with 8 additions and 5 deletions

View File

@@ -383,6 +383,9 @@ public class ComputerUtilMana {
if (!toPay.isPhyrexian() || !ai.canPayLife(2) || (ai.getLife() <= 2 && !ai.cantLoseForZeroOrLessLife())) { if (!toPay.isPhyrexian() || !ai.canPayLife(2) || (ai.getLife() <= 2 && !ai.cantLoseForZeroOrLessLife())) {
break; // cannot pay break; // cannot pay
} }
if ("Never".equals(sa.getParam("AIPhyrexianPayment"))) {
break; // unwise to pay
}
cost.payPhyrexian(); cost.payPhyrexian();
if (!test) { if (!test) {

View File

@@ -2,7 +2,7 @@ Name:Blinding Souleater
ManaCost:3 ManaCost:3
Types:Artifact Creature Cleric Types:Artifact Creature Cleric
PT:1/3 PT:1/3
A:AB$ Tap | Cost$ PW T | ValidTgts$ Creature | TgtPrompt$ Select target creature | SpellDescription$ Tap target creature. A:AB$ Tap | Cost$ PW T | ValidTgts$ Creature | TgtPrompt$ Select target creature | AIPhyrexianPayment$ Never | SpellDescription$ Tap target creature.
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
DeckNeeds:Color$white DeckNeeds:Color$white
SVar:Picture:http://www.wizards.com/global/images/magic/general/blinding_souleater.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/blinding_souleater.jpg

View File

@@ -1,7 +1,7 @@
Name:Gitaxian Probe Name:Gitaxian Probe
ManaCost:PU ManaCost:PU
Types:Sorcery Types:Sorcery
A:SP$ RevealHand | Cost$ PU | ValidTgts$ Player | TgtPrompt$ Select target player | SubAbility$ DBDraw | SpellDescription$ Look at target player's hand. A:SP$ RevealHand | Cost$ PU | ValidTgts$ Player | TgtPrompt$ Select target player | SubAbility$ DBDraw | AIPhyrexianPayment$ Never | SpellDescription$ Look at target player's hand.
SVar:DBDraw:DB$Draw | NumCards$ 1 | SpellDescription$ Draw a card. SVar:DBDraw:DB$Draw | NumCards$ 1 | SpellDescription$ Draw a card.
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/gitaxian_probe.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/gitaxian_probe.jpg

View File

@@ -1,6 +1,6 @@
Name:Gut Shot Name:Gut Shot
ManaCost:PR ManaCost:PR
Types:Instant Types:Instant
A:SP$ DealDamage | Cost$ PR | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to target creature or player. A:SP$ DealDamage | Cost$ PR | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ 1 | AIPhyrexianPayment$ Never | SpellDescription$ CARDNAME deals 1 damage to target creature or player.
SVar:Picture:http://www.wizards.com/global/images/magic/general/gut_shot.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/gut_shot.jpg
Oracle:({P/R} can be paid with either {R} or 2 life.)\nGut Shot deals 1 damage to target creature or player. Oracle:({P/R} can be paid with either {R} or 2 life.)\nGut Shot deals 1 damage to target creature or player.

View File

@@ -1,6 +1,6 @@
Name:Marrow Shards Name:Marrow Shards
ManaCost:PW ManaCost:PW
Types:Instant Types:Instant
A:SP$ DamageAll | Cost$ PW | ValidCards$ Creature.attacking | ValidDescription$ each attacking creature. | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to each attacking creature. A:SP$ DamageAll | Cost$ PW | ValidCards$ Creature.attacking | ValidDescription$ each attacking creature. | NumDmg$ 1 | AIPhyrexianPayment$ Never | SpellDescription$ CARDNAME deals 1 damage to each attacking creature.
SVar:Picture:http://www.wizards.com/global/images/magic/general/marrow_shards.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/marrow_shards.jpg
Oracle:({P/W} can be paid with either {W} or 2 life.)\nMarrow Shards deals 1 damage to each attacking creature. Oracle:({P/W} can be paid with either {W} or 2 life.)\nMarrow Shards deals 1 damage to each attacking creature.

View File

@@ -1,6 +1,6 @@
Name:Mental Misstep Name:Mental Misstep
ManaCost:PU ManaCost:PU
Types:Instant Types:Instant
A:SP$ Counter | Cost$ PU | TargetType$ Spell | TgtPrompt$ Select target spell with CMC 1 | ValidTgts$ Card.cmcEQ1 | SpellDescription$ Counter target spell with converted mana cost 1. A:SP$ Counter | Cost$ PU | TargetType$ Spell | TgtPrompt$ Select target spell with CMC 1 | ValidTgts$ Card.cmcEQ1 | AIPhyrexianPayment$ Never | SpellDescription$ Counter target spell with converted mana cost 1.
SVar:Picture:http://www.wizards.com/global/images/magic/general/mental_misstep.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/mental_misstep.jpg
Oracle:({P/U} can be paid with either {U} or 2 life.)\nCounter target spell with converted mana cost 1. Oracle:({P/U} can be paid with either {U} or 2 life.)\nCounter target spell with converted mana cost 1.