rewrote singleton to enum where applicable

This commit is contained in:
ingmargoudt 2017-03-14 16:31:57 +01:00
parent 3b62489ef5
commit 234cfe9519
872 changed files with 1796 additions and 2135 deletions

View file

@ -35,13 +35,11 @@ import mage.watchers.common.CastSpellLastTurnWatcher;
/**
* @author nantuko
*/
public class NoSpellsWereCastLastTurnCondition implements Condition {
public enum NoSpellsWereCastLastTurnCondition implements Condition {
instance;
private static NoSpellsWereCastLastTurnCondition fInstance = new NoSpellsWereCastLastTurnCondition();
public static Condition getInstance() {
return fInstance;
}
@Override
public boolean apply(Game game, Ability source) {