mirror of
https://github.com/correl/mage.git
synced 2024-11-28 11:09:54 +00: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
|
@ -35,7 +35,7 @@ public final class ArlinnTheMoonsFury extends CardImpl {
|
|||
this.nightCard = true;
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
|
||||
// +2: Add {R}{G}.
|
||||
this.addAbility(new LoyaltyAbility(new BasicManaEffect(new Mana(
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class ArlinnThePacksHope extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
|
||||
// +1: Until your next turn, you may cast creature spells as though they had flash, and each creature you control enters the battlefield with an additional +1/+1 counter on it.
|
||||
Ability ability = new LoyaltyAbility(new CastAsThoughItHadFlashAllEffect(
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class BirdAdmirer extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private BirdAdmirer(final BirdAdmirer card) {
|
||||
|
|
|
@ -40,7 +40,7 @@ public final class BrutalCathar extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private BrutalCathar(final BrutalCathar card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class BurlyBreaker extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private BurlyBreaker(final BurlyBreaker card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class DireStrainBrawler extends CardImpl {
|
|||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private DireStrainBrawler(final DireStrainBrawler card) {
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class DireStrainDemolisher extends CardImpl {
|
|||
this.addAbility(new WardAbility(new ManaCostsImpl<>("{3}")));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private DireStrainDemolisher(final DireStrainDemolisher card) {
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class FangbladeBrigand extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private FangbladeBrigand(final FangbladeBrigand card) {
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class FangbladeEviscerator extends CardImpl {
|
|||
), new ManaCostsImpl<>("{4}{R}")));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private FangbladeEviscerator(final FangbladeEviscerator card) {
|
||||
|
|
|
@ -52,7 +52,7 @@ public final class FrenziedTrapbreaker extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private FrenziedTrapbreaker(final FrenziedTrapbreaker card) {
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class GraveyardGlutton extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private GraveyardGlutton(final GraveyardGlutton card) {
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class GraveyardTrespasser extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private GraveyardTrespasser(final GraveyardTrespasser card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class HarvesttideAssailant extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private HarvesttideAssailant(final HarvesttideAssailant card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class HarvesttideInfiltrator extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private HarvesttideInfiltrator(final HarvesttideInfiltrator card) {
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class HoundTamer extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private HoundTamer(final HoundTamer card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class KessigNaturalist extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private KessigNaturalist(final KessigNaturalist card) {
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class LordOfTheUlvenwald extends CardImpl {
|
|||
this.addAbility(new AttacksTriggeredAbility(new LordOfTheUlvenwaldEffect()));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private LordOfTheUlvenwald(final LordOfTheUlvenwald card) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class MoonrageBrute extends CardImpl {
|
|||
this.addAbility(new WardAbility(new PayLifeCost(3)));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private MoonrageBrute(final MoonrageBrute card) {
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class OutlandLiberator extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private OutlandLiberator(final OutlandLiberator card) {
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class RecklessStormseeker extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private RecklessStormseeker(final RecklessStormseeker card) {
|
||||
|
|
|
@ -36,7 +36,7 @@ public final class SeafaringWerewolf extends CardImpl {
|
|||
));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private SeafaringWerewolf(final SeafaringWerewolf card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class ShadyTraveler extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private ShadyTraveler(final ShadyTraveler card) {
|
||||
|
|
|
@ -35,7 +35,7 @@ public final class SpellruneHowler extends CardImpl {
|
|||
));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private SpellruneHowler(final SpellruneHowler card) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public final class SpellrunePainter extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private SpellrunePainter(final SpellrunePainter card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class StalkingPredator extends CardImpl {
|
|||
this.addAbility(new MenaceAbility());
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private StalkingPredator(final StalkingPredator card) {
|
||||
|
|
|
@ -49,7 +49,7 @@ public final class StormChargedSlasher extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private StormChargedSlasher(final StormChargedSlasher card) {
|
||||
|
|
|
@ -39,7 +39,7 @@ public final class SuspiciousStowaway extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private SuspiciousStowaway(final SuspiciousStowaway card) {
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class TavernRuffian extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private TavernRuffian(final TavernRuffian card) {
|
||||
|
|
|
@ -28,7 +28,7 @@ public final class TavernSmasher extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private TavernSmasher(final TavernSmasher card) {
|
||||
|
|
|
@ -31,7 +31,7 @@ public final class TirelessHauler extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private TirelessHauler(final TirelessHauler card) {
|
||||
|
|
|
@ -33,7 +33,7 @@ public final class TovolarsHuntmaster extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private TovolarsHuntmaster(final TovolarsHuntmaster card) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public final class TovolarsPackleader extends CardImpl {
|
|||
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private TovolarsPackleader(final TovolarsPackleader card) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public final class UntamedPup extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private UntamedPup(final UntamedPup card) {
|
||||
|
|
|
@ -49,7 +49,7 @@ public final class VillageReavers extends CardImpl {
|
|||
)));
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private VillageReavers(final VillageReavers card) {
|
||||
|
|
|
@ -32,7 +32,7 @@ public final class VillageWatch extends CardImpl {
|
|||
|
||||
// Daybound
|
||||
this.addAbility(new TransformAbility());
|
||||
this.addAbility(DayboundAbility.getInstance());
|
||||
this.addAbility(new DayboundAbility());
|
||||
}
|
||||
|
||||
private VillageWatch(final VillageWatch card) {
|
||||
|
|
|
@ -30,7 +30,7 @@ public final class WingShredder extends CardImpl {
|
|||
this.addAbility(ReachAbility.getInstance());
|
||||
|
||||
// Nightbound
|
||||
this.addAbility(NightboundAbility.getInstance());
|
||||
this.addAbility(new NightboundAbility());
|
||||
}
|
||||
|
||||
private WingShredder(final WingShredder card) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ Crew|number|
|
|||
Cumulative upkeep|cost|
|
||||
Cycling|cost|
|
||||
Dash|card, manaString|
|
||||
Daybound|instance|
|
||||
Daybound|new|
|
||||
Deathtouch|instance|
|
||||
Demonstrate|new|
|
||||
Delve|new|
|
||||
|
@ -73,7 +73,7 @@ Mountainwalk|new|
|
|||
Morph|card, cost|
|
||||
Mutate|card, manaString|
|
||||
Myriad|new|
|
||||
Nightbound|instance|
|
||||
Nightbound|new|
|
||||
Ninjutsu|cost|
|
||||
Outlast|cost|
|
||||
Partner|instance|
|
||||
|
|
Loading…
Reference in a new issue