mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
camelCase refactoring (fixes previous comit)
This commit is contained in:
parent
70aefceb03
commit
70128015b7
47 changed files with 21 additions and 29 deletions
|
@ -72,7 +72,7 @@ public class AuraOfDominion extends CardImpl<AuraOfDominion> {
|
||||||
this.getSpellAbility().addTarget(auraTarget);
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
this.getSpellAbility().addEffect(new AttachEffect(Constants.Outcome.Untap));
|
this.getSpellAbility().addEffect(new AttachEffect(Constants.Outcome.Untap));
|
||||||
this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
|
this.addAbility(new EnchantAbility(auraTarget.getTargetName()));
|
||||||
Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new AuraofDominionEffect(), new GenericManaCost(1));
|
Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new AuraOfDominionEffect(), new GenericManaCost(1));
|
||||||
ability.addCost(new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)));
|
ability.addCost(new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filter, false)));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
@ -88,12 +88,12 @@ public class AuraOfDominion extends CardImpl<AuraOfDominion> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class AuraofDominionEffect extends OneShotEffect<AuraofDominionEffect> {
|
class AuraOfDominionEffect extends OneShotEffect<AuraOfDominionEffect> {
|
||||||
AuraofDominionEffect() {
|
AuraOfDominionEffect() {
|
||||||
super(Constants.Outcome.Untap);
|
super(Constants.Outcome.Untap);
|
||||||
}
|
}
|
||||||
|
|
||||||
AuraofDominionEffect(final AuraofDominionEffect effect) {
|
AuraOfDominionEffect(final AuraOfDominionEffect effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ class AuraofDominionEffect extends OneShotEffect<AuraofDominionEffect> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AuraofDominionEffect copy() {
|
public AuraOfDominionEffect copy() {
|
||||||
return new AuraofDominionEffect(this);
|
return new AuraOfDominionEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -68,7 +68,7 @@ public class MelokuTheCloudedMirror extends CardImpl<MelokuTheCloudedMirror> {
|
||||||
this.power = new MageInt(2);
|
this.power = new MageInt(2);
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
this.addAbility(FlyingAbility.getInstance());
|
this.addAbility(FlyingAbility.getInstance());
|
||||||
Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CreateTokenEffect(new MelokutheCloudedMirrorToken(), 1), new GenericManaCost(1));
|
Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CreateTokenEffect(new MelokuTheCloudedMirrorToken(), 1), new GenericManaCost(1));
|
||||||
ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
|
ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,8 @@ public class MelokuTheCloudedMirror extends CardImpl<MelokuTheCloudedMirror> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class MelokutheCloudedMirrorToken extends Token {
|
class MelokuTheCloudedMirrorToken extends Token {
|
||||||
MelokutheCloudedMirrorToken() {
|
MelokuTheCloudedMirrorToken() {
|
||||||
super("", "a 1/1 blue Illusion creature token with flying");
|
super("", "a 1/1 blue Illusion creature token with flying");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setBlue(true);
|
color.setBlue(true);
|
|
@ -50,7 +50,7 @@ public class PartTheVeil extends CardImpl<PartTheVeil> {
|
||||||
this.expansionSetCode = "CHK";
|
this.expansionSetCode = "CHK";
|
||||||
this.subtype.add("Arcane");
|
this.subtype.add("Arcane");
|
||||||
this.color.setBlue(true);
|
this.color.setBlue(true);
|
||||||
this.getSpellAbility().addEffect(new ParttheVeilEffect());
|
this.getSpellAbility().addEffect(new PartTheVeilEffect());
|
||||||
}
|
}
|
||||||
|
|
||||||
public PartTheVeil(final PartTheVeil card) {
|
public PartTheVeil(final PartTheVeil card) {
|
||||||
|
@ -64,12 +64,12 @@ public class PartTheVeil extends CardImpl<PartTheVeil> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ParttheVeilEffect extends OneShotEffect<ParttheVeilEffect> {
|
class PartTheVeilEffect extends OneShotEffect<PartTheVeilEffect> {
|
||||||
public ParttheVeilEffect() {
|
public PartTheVeilEffect() {
|
||||||
super(Constants.Outcome.ReturnToHand);
|
super(Constants.Outcome.ReturnToHand);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ParttheVeilEffect(final ParttheVeilEffect effect) {
|
public PartTheVeilEffect(final PartTheVeilEffect effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ class ParttheVeilEffect extends OneShotEffect<ParttheVeilEffect> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ParttheVeilEffect copy() {
|
public PartTheVeilEffect copy() {
|
||||||
return new ParttheVeilEffect(this);
|
return new PartTheVeilEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -41,9 +41,7 @@ import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.effects.common.ManaEffect;
|
import mage.abilities.effects.common.ManaEffect;
|
||||||
import mage.abilities.effects.common.continious.BoostControlledEffect;
|
import mage.abilities.effects.common.continious.BoostControlledEffect;
|
||||||
import mage.abilities.effects.common.continious.GainAbilityControlledEffect;
|
import mage.abilities.effects.common.continious.GainAbilityControlledEffect;
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -36,10 +36,7 @@ import mage.Constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.TriggeredAbilityImpl;
|
import mage.abilities.TriggeredAbilityImpl;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.Effect;
|
|
||||||
import mage.abilities.effects.common.DiscardTargetEffect;
|
|
||||||
import mage.abilities.effects.common.DrawCardControllerEffect;
|
import mage.abilities.effects.common.DrawCardControllerEffect;
|
||||||
import mage.abilities.effects.common.UntapAllLandsControllerEffect;
|
|
||||||
import mage.abilities.effects.common.continious.BoostControlledEffect;
|
import mage.abilities.effects.common.continious.BoostControlledEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
@ -47,7 +44,6 @@ import mage.game.Game;
|
||||||
import mage.game.events.DamagedPlayerEvent;
|
import mage.game.events.DamagedPlayerEvent;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Loki
|
* @author Loki
|
||||||
|
@ -70,7 +66,7 @@ public class SeshiroTheAnointed extends CardImpl<SeshiroTheAnointed> {
|
||||||
this.power = new MageInt(3);
|
this.power = new MageInt(3);
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new BoostControlledEffect(2, 2, Constants.Duration.WhileOnBattlefield, filter, true)));
|
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new BoostControlledEffect(2, 2, Constants.Duration.WhileOnBattlefield, filter, true)));
|
||||||
this.addAbility(new SeshirotheAnointedAbility());
|
this.addAbility(new SeshiroTheAnointedAbility());
|
||||||
}
|
}
|
||||||
|
|
||||||
public SeshiroTheAnointed(final SeshiroTheAnointed card) {
|
public SeshiroTheAnointed(final SeshiroTheAnointed card) {
|
||||||
|
@ -84,19 +80,19 @@ public class SeshiroTheAnointed extends CardImpl<SeshiroTheAnointed> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class SeshirotheAnointedAbility extends TriggeredAbilityImpl<SeshirotheAnointedAbility> {
|
class SeshiroTheAnointedAbility extends TriggeredAbilityImpl<SeshiroTheAnointedAbility> {
|
||||||
|
|
||||||
public SeshirotheAnointedAbility() {
|
public SeshiroTheAnointedAbility() {
|
||||||
super(Constants.Zone.BATTLEFIELD, new DrawCardControllerEffect(1), true);
|
super(Constants.Zone.BATTLEFIELD, new DrawCardControllerEffect(1), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SeshirotheAnointedAbility(final SeshirotheAnointedAbility ability) {
|
public SeshiroTheAnointedAbility(final SeshiroTheAnointedAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SeshirotheAnointedAbility copy() {
|
public SeshiroTheAnointedAbility copy() {
|
||||||
return new SeshirotheAnointedAbility(this);
|
return new SeshiroTheAnointedAbility(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -35,14 +35,12 @@ import mage.Constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SpellCastTriggeredAbility;
|
import mage.abilities.common.SpellCastTriggeredAbility;
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
|
||||||
import mage.abilities.effects.common.GainLifeEffect;
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||||
import mage.abilities.keyword.SoulshiftAbility;
|
import mage.abilities.keyword.SoulshiftAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.filter.Filter;
|
import mage.filter.Filter;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.target.common.TargetCreatureOrPlayer;
|
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
|
|
||||||
/**
|
/**
|
Loading…
Reference in a new issue