forked from External/mage
singleton conditions to enum
This commit is contained in:
parent
809c8c97c9
commit
fb9d713287
82 changed files with 196 additions and 242 deletions
|
|
@ -45,18 +45,9 @@ import mage.game.Game;
|
|||
*
|
||||
*/
|
||||
|
||||
public class SuspendedCondition implements Condition {
|
||||
public enum SuspendedCondition implements Condition {
|
||||
|
||||
private static SuspendedCondition instance = null;
|
||||
|
||||
private SuspendedCondition() {}
|
||||
|
||||
public static Condition getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new SuspendedCondition();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue