- AI hint for Sakura Tribe-Elder blocking. (#4177)

- AI hint for Visions of Dread.
This commit is contained in:
Agetian
2023-11-16 16:53:30 +03:00
committed by GitHub
parent c503779db4
commit 47b5ba268c
3 changed files with 6 additions and 1 deletions

View File

@@ -252,8 +252,10 @@ public class AiBlockController {
} }
} }
// 4.Blockers that have a big upside when dying // 4.Blockers that have a big upside when dying
// 4a.Blockers that are profitable to sacrifice even in the event of an unfavorable block
for (Card b : blockers) { for (Card b : blockers) {
if (b.hasSVar("SacMe") && Integer.parseInt(b.getSVar("SacMe")) > 3) { if ((b.hasSVar("SacMe") && Integer.parseInt(b.getSVar("SacMe")) > 3) ||
(b.hasSVar("SacMeAfterBlock") && !attacker.hasKeyword(Keyword.TRAMPLE) && !attacker.hasKeyword(Keyword.BANDING))) {
blocker = b; blocker = b;
if (!ComputerUtilCombat.canDestroyAttacker(ai, attacker, blocker, combat, false)) { if (!ComputerUtilCombat.canDestroyAttacker(ai, attacker, blocker, combat, false)) {
blockedButUnkilled.add(attacker); blockedButUnkilled.add(attacker);

View File

@@ -3,4 +3,5 @@ ManaCost:1 G
Types:Creature Snake Shaman Types:Creature Snake Shaman
PT:1/1 PT:1/1
A:AB$ ChangeZone | Cost$ Sac<1/CARDNAME> | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Land.Basic | ChangeNum$ 1 | SpellDescription$ Search your library for a basic land card, put it onto the battlefield tapped, then shuffle. A:AB$ ChangeZone | Cost$ Sac<1/CARDNAME> | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Land.Basic | ChangeNum$ 1 | SpellDescription$ Search your library for a basic land card, put it onto the battlefield tapped, then shuffle.
SVar:SacMeAfterBlock:TRUE
Oracle:Sacrifice Sakura-Tribe Elder: Search your library for a basic land card, put that card onto the battlefield tapped, then shuffle. Oracle:Sacrifice Sakura-Tribe Elder: Search your library for a basic land card, put that card onto the battlefield tapped, then shuffle.

View File

@@ -6,4 +6,6 @@ SVar:DBChangeZone:DB$ ChangeZone | Defined$ ChosenCard | Origin$ Graveyard | Gai
K:Flashback:8 B B:ReduceCost$ X:This spell costs {X} less to cast this way, where X is the greatest mana value of a commander you own on the battlefield or in the command zone. K:Flashback:8 B B:ReduceCost$ X:This spell costs {X} less to cast this way, where X is the greatest mana value of a commander you own on the battlefield or in the command zone.
SVar:X:Count$ValidBattlefield,Command Card.IsCommander+YouOwn$GreatestCMC SVar:X:Count$ValidBattlefield,Command Card.IsCommander+YouOwn$GreatestCMC
DeckHas:Ability$Graveyard DeckHas:Ability$Graveyard
SVar:NeedsToPlayVar:Z GE1
SVar:Z:Count$ValidGraveyard Creature.OppOwn
Oracle:Target opponent puts a creature card of their choice from their graveyard onto the battlefield under your control.\nFlashback {8}{B}{B}. This spell costs {X} less to cast this way, where X is the greatest mana value of a commander you own on the battlefield or in the command zone. (You may cast this card from your graveyard for its flashback cost. Then exile it.) Oracle:Target opponent puts a creature card of their choice from their graveyard onto the battlefield under your control.\nFlashback {8}{B}{B}. This spell costs {X} less to cast this way, where X is the greatest mana value of a commander you own on the battlefield or in the command zone. (You may cast this card from your graveyard for its flashback cost. Then exile it.)