This commit is contained in:
Jeff Wadsworth 2023-11-28 17:13:15 -06:00
parent b695f8906c
commit 70069f2937
2 changed files with 89 additions and 33 deletions

View file

@ -0,0 +1,28 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.game.Game;
/**
*
* @author jeffwadsworth
*/
public enum ControllerMainPhaseCondition implements Condition {
instance;
@Override
public boolean apply(Game game, Ability source) {
return game.isActivePlayer(source.getControllerId())
&& game.isMainPhase();
}
@Override
public String toString() {
return "If this is your main phase,";
}
}