mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Fall from Favor - Fixed wrongly implemented condition (fixes #7277).
This commit is contained in:
parent
89d13c468f
commit
3f7b26f60b
1 changed files with 4 additions and 11 deletions
|
@ -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")));
|
||||
}
|
||||
|
||||
|
@ -58,12 +60,3 @@ public final class FallFromFavor extends CardImpl {
|
|||
return new FallFromFavor(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum FallFromFavorCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return game.getActivePlayerId().equals(game.getActivePlayerId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue