Fixed Followed Footsteps.  Related to Bug
-
package mage.cards.f;
import java.util.UUID;
@@ -14,6 +13,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Outcome;
+import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
@@ -71,13 +71,15 @@ class FollowedFootstepsEffect extends OneShotEffect {
@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 target = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo());
if (target != null) {
Effect effect = new CreateTokenCopyTargetEffect();
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
return effect.apply(game, source);
}
+ }
return false;
}
}
