* Fall from Favor - Fixed wrongly implemented condition (fixes #7277).

This commit is contained in:
LevelX2 2020-12-22 10:09:21 +01:00
parent 89d13c468f
commit 3f7b26f60b

View file

@ -20,6 +20,8 @@ import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
import mage.abilities.condition.InvertCondition;
import mage.abilities.condition.common.MonarchIsSourceControllerCondition;
/**
* @author TheElk801
@ -45,7 +47,7 @@ public final class FallFromFavor extends CardImpl {
// Enchanted creature doesn't untap during its controller's untap step unless that player is the monarch.
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousRuleModifyingEffect(
new DontUntapInControllersUntapStepEnchantedEffect(), FallFromFavorCondition.instance
new DontUntapInControllersUntapStepEnchantedEffect(), new InvertCondition(MonarchIsSourceControllerCondition.instance)
).setText("enchanted creature doesn't untap during its controller's untap step unless that player is the monarch")));
}
@ -57,13 +59,4 @@ public final class FallFromFavor extends CardImpl {
public FallFromFavor copy() {
return new FallFromFavor(this);
}
}
enum FallFromFavorCondition implements Condition {
instance;
@Override
public boolean apply(Game game, Ability source) {
return game.getActivePlayerId().equals(game.getActivePlayerId());
}
}
}