diff --git a/forge-game/src/main/java/forge/game/ability/effects/DigEffect.java b/forge-game/src/main/java/forge/game/ability/effects/DigEffect.java index 9c729f8f036..0997113d95f 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/DigEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/DigEffect.java @@ -1,9 +1,6 @@ package forge.game.ability.effects; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; +import java.util.*; import forge.card.MagicColor; import forge.game.Game; @@ -421,6 +418,16 @@ public class DigEffect extends SpellAbilityEffect { sa.getParamOrDefault("WithCounterNum", "1"), sa); c.addEtbCounter(CounterType.getType(sa.getParam("WithCounter")), numCtr, player); } + if (sa.hasAdditionalAbility("AnimateSubAbility")) { + // need LKI before Animate does apply + if (!moveParams.containsKey(AbilityKey.CardLKI)) { + moveParams.put(AbilityKey.CardLKI, CardUtil.getLKICopy(c)); + } + + host.addRemembered(c); + AbilityUtils.resolve(sa.getAdditionalAbility("AnimateSubAbility")); + host.removeRemembered(c); + } c = game.getAction().moveTo(zone, c, sa, moveParams); if (destZone1.equals(ZoneType.Battlefield)) { if (addToCombat(c, c.getController(), sa, "Attacking", "Blocking")) { diff --git a/forge-gui/res/cardsfolder/a/arbiter_of_the_ideal.txt b/forge-gui/res/cardsfolder/a/arbiter_of_the_ideal.txt index 0138666b3a5..a7609198013 100644 --- a/forge-gui/res/cardsfolder/a/arbiter_of_the_ideal.txt +++ b/forge-gui/res/cardsfolder/a/arbiter_of_the_ideal.txt @@ -4,8 +4,6 @@ Types:Creature Sphinx PT:4/5 K:Flying T:Mode$ Untaps | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigReveal | TriggerDescription$ Inspired — Whenever CARDNAME becomes untapped, reveal the top card of your library. If it's an artifact, creature, or land card, you may put it onto the battlefield with a manifestation counter on it. That permanent is an enchantment in addition to its other types. -SVar:TrigReveal:DB$ Dig | DigNum$ 1 | Reveal$ True | Optional$ True | ChangeValid$ Artifact,Creature,Land | DestinationZone$ Battlefield | DestinationZone2$ Library | LibraryPosition2$ 0 | RememberChanged$ True | SubAbility$ DBPutCounter -SVar:DBPutCounter:DB$ PutCounter | Defined$ Remembered | CounterType$ MANIFESTATION | CounterNum$ 1 | SubAbility$ DBAnimate -SVar:DBAnimate:DB$ Animate | Defined$ Remembered | Types$ Enchantment | Duration$ Permanent | SubAbility$ DBCleanup -SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:TrigReveal:DB$ Dig | DigNum$ 1 | Reveal$ True | Optional$ True | ChangeValid$ Artifact,Creature,Land | DestinationZone$ Battlefield | LibraryPosition2$ 0 | WithCounter$ MANIFESTATION | AnimateSubAbility$ Enchantment +SVar:Enchantment:DB$ Animate | Defined$ Remembered | Types$ Enchantment | Duration$ Permanent Oracle:Flying\nInspired — Whenever Arbiter of the Ideal becomes untapped, reveal the top card of your library. If it's an artifact, creature, or land card, you may put it onto the battlefield with a manifestation counter on it. That permanent is an enchantment in addition to its other types.