- Resolved test issue.

This commit is contained in:
jeffwadsworth 2020-08-07 21:13:13 -05:00
parent e9930504f6
commit 5b9e871d8e
2 changed files with 10 additions and 0 deletions

View file

@ -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) {

View file

@ -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) {