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
|
|
@ -15,14 +15,14 @@ import mage.game.permanent.Permanent;
|
|||
* @author Loki
|
||||
*/
|
||||
public class ShadowAbility extends EvasionAbility implements MageSingleton {
|
||||
private static final ShadowAbility fINSTANCE = new ShadowAbility();
|
||||
private static final ShadowAbility instance = new ShadowAbility();
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static ShadowAbility getInstance() {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
private ShadowAbility() {
|
||||
|
|
@ -36,7 +36,7 @@ public class ShadowAbility extends EvasionAbility implements MageSingleton {
|
|||
|
||||
@Override
|
||||
public ShadowAbility copy() {
|
||||
return fINSTANCE;
|
||||
return instance;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue