mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09:00
- Resolved test issue.
This commit is contained in:
parent
e9930504f6
commit
5b9e871d8e
2 changed files with 10 additions and 0 deletions
|
@ -71,7 +71,12 @@ class FollowedFootstepsEffect extends OneShotEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
|
// In the case that Followed Footsteps is blinked
|
||||||
Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);
|
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) {
|
if (enchantment != null) {
|
||||||
Permanent target = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo());
|
Permanent target = game.getPermanentOrLKIBattlefield(enchantment.getAttachedTo());
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
|
|
|
@ -64,7 +64,12 @@ public final class FracturedLoyalty extends CardImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
|
// In the case that Fractured Loyalty is blinked
|
||||||
Permanent enchantment = (Permanent) game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);
|
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) {
|
if (enchantment != null) {
|
||||||
Permanent enchantedCreature = game.getPermanent(enchantment.getAttachedTo());
|
Permanent enchantedCreature = game.getPermanent(enchantment.getAttachedTo());
|
||||||
if (enchantedCreature != null) {
|
if (enchantedCreature != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue