From 5b9e871d8e7b32d83d17ce0245e8a2d100614f0c Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Fri, 7 Aug 2020 21:13:13 -0500 Subject: [PATCH] - Resolved test issue. --- Mage.Sets/src/mage/cards/f/FollowedFootsteps.java | 5 +++++ Mage.Sets/src/mage/cards/f/FracturedLoyalty.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Mage.Sets/src/mage/cards/f/FollowedFootsteps.java b/Mage.Sets/src/mage/cards/f/FollowedFootsteps.java index 003c51e8e9..aef4cabc25 100644 --- a/Mage.Sets/src/mage/cards/f/FollowedFootsteps.java +++ b/Mage.Sets/src/mage/cards/f/FollowedFootsteps.java @@ -71,7 +71,12 @@ class FollowedFootstepsEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { + // In the case that Followed Footsteps is blinked Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD); + if (enchantment == null) { + // It was not blinked, use the standard method + enchantment = game.getPermanentOrLKIBattlefield(source.getSourceId()); + } if (enchantment != null) { Permanent target = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo()); if (target != null) { diff --git a/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java b/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java index d0aac890f1..8a61d5bde1 100644 --- a/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java +++ b/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java @@ -64,7 +64,12 @@ public final class FracturedLoyalty extends CardImpl { @Override public boolean apply(Game game, Ability source) { + // In the case that Fractured Loyalty is blinked Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD); + if (enchantment == null) { + // It was not blinked, use the standard method + enchantment = game.getPermanentOrLKIBattlefield(source.getSourceId()); + } if (enchantment != null) { Permanent enchantedCreature = game.getPermanent(enchantment.getAttachedTo()); if (enchantedCreature != null) {