From e9930504f68021b203cc5f32df36705ed3e76971 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Fri, 7 Aug 2020 16:22:35 -0500 Subject: [PATCH] - Fixed Fractured Loyalty. Related to Bug #6236 --- Mage.Sets/src/mage/cards/f/FracturedLoyalty.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java b/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java index 260c148e63..d0aac890f1 100644 --- a/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java +++ b/Mage.Sets/src/mage/cards/f/FracturedLoyalty.java @@ -1,4 +1,3 @@ - package mage.cards.f; import java.util.UUID; @@ -65,14 +64,14 @@ public final class FracturedLoyalty extends CardImpl { @Override public boolean apply(Game game, Ability source) { - Permanent enchantment = game.getPermanentOrLKIBattlefield(source.getSourceId()); + Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD); if (enchantment != null) { Permanent enchantedCreature = game.getPermanent(enchantment.getAttachedTo()); if (enchantedCreature != null) { Player controller = game.getPlayer(enchantedCreature.getControllerId()); if (enchantment.getAttachedTo() != null) { if (controller != null && !enchantedCreature.isControlledBy(this.getTargetPointer().getFirst(game, source))) { - ContinuousEffect effect = new GainControlTargetEffect(Duration.Custom, this.getTargetPointer().getFirst(game, source)); + ContinuousEffect effect = new GainControlTargetEffect(Duration.EndOfGame, this.getTargetPointer().getFirst(game, source)); effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo())); game.addEffect(effect, source); return true;