mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[MID] changed daybound/nightbound from being singleton
This commit is contained in:
parent
4902a31720
commit
5f32fe5308
39 changed files with 50 additions and 78 deletions
|
|
@ -1,34 +1,20 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.MageSingleton;
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.constants.Zone;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
* TODO: Implement this
|
||||
*/
|
||||
public class DayboundAbility extends StaticAbility implements MageSingleton {
|
||||
public class DayboundAbility extends StaticAbility {
|
||||
|
||||
private static final DayboundAbility instance;
|
||||
|
||||
static {
|
||||
instance = new DayboundAbility();
|
||||
// instance.addIcon(DayboundAbilityIcon.instance); (needs to be added)
|
||||
public DayboundAbility() {
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static DayboundAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private DayboundAbility() {
|
||||
super(Zone.ALL, null);
|
||||
private DayboundAbility(final DayboundAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -38,6 +24,6 @@ public class DayboundAbility extends StaticAbility implements MageSingleton {
|
|||
|
||||
@Override
|
||||
public DayboundAbility copy() {
|
||||
return instance;
|
||||
return new DayboundAbility(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +1,20 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.MageSingleton;
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.constants.Zone;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
* TODO: Implement this
|
||||
*/
|
||||
public class NightboundAbility extends StaticAbility implements MageSingleton {
|
||||
public class NightboundAbility extends StaticAbility {
|
||||
|
||||
private static final NightboundAbility instance;
|
||||
|
||||
static {
|
||||
instance = new NightboundAbility();
|
||||
// instance.addIcon(NightboundAbilityIcon.instance); (needs to be added)
|
||||
public NightboundAbility() {
|
||||
super(Zone.BATTLEFIELD, null);
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static NightboundAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private NightboundAbility() {
|
||||
super(Zone.ALL, null);
|
||||
private NightboundAbility(final NightboundAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -38,6 +24,6 @@ public class NightboundAbility extends StaticAbility implements MageSingleton {
|
|||
|
||||
@Override
|
||||
public NightboundAbility copy() {
|
||||
return instance;
|
||||
return new NightboundAbility(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue