forked from External/mage
rewrote singleton to enum where applicable
This commit is contained in:
parent
3b62489ef5
commit
234cfe9519
872 changed files with 1796 additions and 2135 deletions
|
|
@ -34,21 +34,11 @@ import mage.game.Game;
|
|||
import mage.watchers.common.PlayerAttackedWatcher;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class RaidCondition implements Condition {
|
||||
public enum RaidCondition implements Condition {
|
||||
|
||||
private static RaidCondition fInstance = null;
|
||||
|
||||
public static Condition getInstance() {
|
||||
if (fInstance == null) {
|
||||
fInstance = new RaidCondition();
|
||||
}
|
||||
return fInstance;
|
||||
}
|
||||
|
||||
private RaidCondition() {}
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue