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
|
|
@ -16,19 +16,9 @@ import mage.game.permanent.Permanent;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class RenownedSourceCondition implements Condition {
|
||||
|
||||
private static RenownedSourceCondition fInstance = null;
|
||||
|
||||
private RenownedSourceCondition() {}
|
||||
|
||||
public static RenownedSourceCondition getInstance() {
|
||||
if (fInstance == null) {
|
||||
fInstance = new RenownedSourceCondition();
|
||||
}
|
||||
return fInstance;
|
||||
}
|
||||
public enum RenownedSourceCondition implements Condition {
|
||||
|
||||
instance;
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue