From d870a1b0f185b7e5e2e96ebde6f413cfdc839b4e Mon Sep 17 00:00:00 2001 From: Michael Kamensky Date: Sun, 4 Nov 2018 09:12:59 +0000 Subject: [PATCH] Make the AI account for static abilities granted from the evaluated card in ApplyStaticContPT --- forge-ai/src/main/java/forge/ai/ComputerUtilCard.java | 1 + forge-gui/res/cardsfolder/t/the_mirari_conjecture.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ComputerUtilCard.java b/forge-ai/src/main/java/forge/ai/ComputerUtilCard.java index 008da7ec703..ec142dd9f35 100644 --- a/forge-ai/src/main/java/forge/ai/ComputerUtilCard.java +++ b/forge-ai/src/main/java/forge/ai/ComputerUtilCard.java @@ -1616,6 +1616,7 @@ public class ComputerUtilCard { if (exclude != null) { list.removeAll(exclude); } + list.add(vCard); // account for the static abilities that may be present on the card itself for (final Card c : list) { for (final StaticAbility stAb : c.getStaticAbilities()) { final Map params = stAb.getMapParams(); diff --git a/forge-gui/res/cardsfolder/t/the_mirari_conjecture.txt b/forge-gui/res/cardsfolder/t/the_mirari_conjecture.txt index 692e5a00d4e..c43bdc70132 100644 --- a/forge-gui/res/cardsfolder/t/the_mirari_conjecture.txt +++ b/forge-gui/res/cardsfolder/t/the_mirari_conjecture.txt @@ -7,6 +7,7 @@ SVar:DBChangeZoneII:DB$ ChangeZone | Origin$ Graveyard | Destination$ Hand | Val SVar:DBEffect:DB$ Effect | Name$ The Mirari Conjecture Effect | Triggers$ InstantSorceryCast | SVars$ TrigCopySpell | SpellDescription$ Until end of turn, whenever you cast an instant or sorcery spell, copy it. You may choose new targets for the copy. SVar:InstantSorceryCast:Mode$ SpellCast | ValidCard$ Instant,Sorcery | ValidActivatingPlayer$ You | Execute$ TrigCopySpell | TriggerZones$ Command | TriggerDescription$ Until end of turn, whenever you cast an instant or sorcery spell, copy it. You may choose new targets for the copy. SVar:TrigCopySpell:DB$ CopySpellAbility | Defined$ TriggeredSpellAbility -SVar:NeedsToPlay:Instant.YouCtrl+inZoneGraveyard,Sorcery.YouCtrl+inZoneGraveyard +SVar:NeedsToPlayVar:Z GE1 +SVar:Z:Count$ValidGraveyard Instant.YouOwn,Sorcery.YouOwn DeckHints:Type$Instant|Sorcery Oracle:(As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)\nI — Return target instant card from your graveyard to your hand.\nII — Return target sorcery card from your graveyard to your hand.\nIII — Until end of turn, whenever you cast an instant or sorcery spell, copy it. You may choose new targets for the copy.