Refactor - Rename Override card class to OverrideCard to not conflict with java.lang.Override.

This commit is contained in:
JOAC69 2016-09-23 02:39:57 -05:00
parent d1f18ced96
commit 3e2c3a6ab2
294 changed files with 526 additions and 526 deletions

View file

@ -74,17 +74,17 @@ class AwakenTheSkyTyrantTriggeredAbility extends TriggeredAbilityImpl {
super(ability);
}
@java.lang.Override
@Override
public AwakenTheSkyTyrantTriggeredAbility copy() {
return new AwakenTheSkyTyrantTriggeredAbility(this);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType().equals(GameEvent.EventType.DAMAGED_PLAYER);
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getTargetId().equals(controllerId)) {
UUID sourceControllerId = game.getControllerId(event.getSourceId());
@ -95,7 +95,7 @@ class AwakenTheSkyTyrantTriggeredAbility extends TriggeredAbilityImpl {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return "When a source an opponent controls deals damage to you, " + super.getRule();
}

View file

@ -120,12 +120,12 @@ class SavageAllianceGainTrampleEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public SavageAllianceGainTrampleEffect copy() {
return new SavageAllianceGainTrampleEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(this.getTargetPointer().getFirst(game, source));
if (player != null) {

View file

@ -101,12 +101,12 @@ class DwarvenArmorerEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public DwarvenArmorerEffect copy() {
return new DwarvenArmorerEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if(controller != null) {

View file

@ -123,7 +123,7 @@ class ClockworkAvianEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
@ -133,7 +133,7 @@ class ClockworkAvianEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ClockworkAvianEffect copy() {
return new ClockworkAvianEffect(this);
}

View file

@ -78,17 +78,17 @@ class PresenceOfTheMasterTriggeredAbility extends TriggeredAbilityImpl {
super(abiltity);
}
@java.lang.Override
@Override
public PresenceOfTheMasterTriggeredAbility copy() {
return new PresenceOfTheMasterTriggeredAbility(this);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.SPELL_CAST;
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && (spell.getCardType().contains(CardType.ENCHANTMENT))){
@ -100,7 +100,7 @@ class PresenceOfTheMasterTriggeredAbility extends TriggeredAbilityImpl {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return "Whenever a player casts an enchantment spell, counter it";
}
@ -117,12 +117,12 @@ class CounterEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public CounterEffect copy() {
return new CounterEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
return game.getStack().counter(this.getTargetPointer().getFirst(game, source), source.getSourceId(), game);
}

View file

@ -94,12 +94,12 @@ class InstigatorEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public InstigatorEffect copy() {
return new InstigatorEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(this.getTargetPointer().getFirst(game, source));
if (player != null) {

View file

@ -45,7 +45,7 @@ public class AetherSpellbomb extends mage.sets.elspethvstezzeret.AetherSpellbomb
super(card);
}
@java.lang.Override
@Override
public AetherSpellbomb copy() {
return new AetherSpellbomb(this);
}

View file

@ -52,7 +52,7 @@ public class AlphaMyr extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AlphaMyr copy() {
return new AlphaMyr(this);
}

View file

@ -74,7 +74,7 @@ public class AltarOfShadows extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AltarOfShadows copy() {
return new AltarOfShadows(this);
}
@ -91,12 +91,12 @@ class AltarOfShadowsEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public AltarOfShadowsEffect copy() {
return new AltarOfShadowsEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
Player player = game.getPlayer(source.getControllerId());

View file

@ -64,7 +64,7 @@ public class AltarsLight extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AltarsLight copy() {
return new AltarsLight(this);
}

View file

@ -50,7 +50,7 @@ public class AncientDen extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AncientDen copy() {
return new AncientDen(this);
}

View file

@ -63,7 +63,7 @@ public class Annul extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Annul copy() {
return new Annul(this);
}

View file

@ -65,7 +65,7 @@ public class ArcSlogger extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ArcSlogger copy() {
return new ArcSlogger(this);
}

View file

@ -70,7 +70,7 @@ public class Arrest extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Arrest copy() {
return new Arrest(this);
}

View file

@ -58,7 +58,7 @@ public class AssertAuthority extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AssertAuthority copy() {
return new AssertAuthority(this);
}

View file

@ -68,7 +68,7 @@ public class Atog extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Atog copy() {
return new Atog(this);
}

View file

@ -67,7 +67,7 @@ public class AuriokBladewarden extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AuriokBladewarden copy() {
return new AuriokBladewarden(this);
}

View file

@ -80,7 +80,7 @@ public class AuriokSteelshaper extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AuriokSteelshaper copy() {
return new AuriokSteelshaper(this);
}

View file

@ -73,7 +73,7 @@ public class AuriokTransfixer extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public AuriokTransfixer copy() {
return new AuriokTransfixer(this);
}

View file

@ -71,7 +71,7 @@ public class BansheesBlade extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public BansheesBlade copy() {
return new BansheesBlade(this);
}
@ -91,12 +91,12 @@ class BansheesBladeAbility extends TriggeredAbilityImpl {
this.usedInPhase = ability.usedInPhase;
}
@java.lang.Override
@Override
public BansheesBladeAbility copy() {
return new BansheesBladeAbility(this);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.DAMAGED_PLAYER
|| event.getType() == EventType.DAMAGED_CREATURE
@ -104,7 +104,7 @@ class BansheesBladeAbility extends TriggeredAbilityImpl {
|| event.getType() == EventType.COMBAT_DAMAGE_STEP_PRE;
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event instanceof DamagedEvent && ((DamagedEvent) event).isCombatDamage() && !usedInPhase) {
Permanent permanent = game.getPermanent(event.getSourceId());
@ -119,7 +119,7 @@ class BansheesBladeAbility extends TriggeredAbilityImpl {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return "Whenever equipped creature deals combat damage, put a charge counter on {this}.";
}

View file

@ -45,7 +45,7 @@ public class BarterInBlood extends mage.sets.avacynrestored.BarterInBlood {
super(card);
}
@java.lang.Override
@Override
public BarterInBlood copy() {
return new BarterInBlood(this);
}

View file

@ -53,7 +53,7 @@ public class Battlegrowth extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Battlegrowth copy() {
return new Battlegrowth(this);
}

View file

@ -72,7 +72,7 @@ public class BetrayalOfFlesh extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public BetrayalOfFlesh copy() {
return new BetrayalOfFlesh(this);
}

View file

@ -45,7 +45,7 @@ public class BlindingBeam extends mage.sets.elspethvstezzeret.BlindingBeam {
super(card);
}
@java.lang.Override
@Override
public BlindingBeam copy() {
return new BlindingBeam(this);
}

View file

@ -41,7 +41,7 @@ public class BlinkmothUrn extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public BlinkmothUrn copy() {
return new BlinkmothUrn(this);
}
@ -59,12 +59,12 @@ class BlinkmothUrnEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public BlinkmothUrnEffect copy() {
return new BlinkmothUrnEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(game.getActivePlayerId());
FilterArtifactPermanent filter = new FilterArtifactPermanent("artifacts you control");

View file

@ -72,7 +72,7 @@ public class BlinkmothWell extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public BlinkmothWell copy() {
return new BlinkmothWell(this);
}

View file

@ -55,7 +55,7 @@ public class Bloodscent extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Bloodscent copy() {
return new Bloodscent(this);
}

View file

@ -58,7 +58,7 @@ public class Bonesplitter extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Bonesplitter copy() {
return new Bonesplitter(this);
}

View file

@ -45,7 +45,7 @@ public class BoshIronGolem extends mage.sets.planechase.BoshIronGolem {
super(card);
}
@java.lang.Override
@Override
public BoshIronGolem copy() {
return new BoshIronGolem(this);
}

View file

@ -45,7 +45,7 @@ public class BottleGnomes extends mage.sets.tempest.BottleGnomes {
super(card);
}
@java.lang.Override
@Override
public BottleGnomes copy() {
return new BottleGnomes(this);
}

View file

@ -45,7 +45,7 @@ public class Broodstar extends mage.sets.planechase.Broodstar {
super(card);
}
@java.lang.Override
@Override
public Broodstar copy() {
return new Broodstar(this);
}

View file

@ -55,7 +55,7 @@ public class Cathodion extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Cathodion copy() {
return new Cathodion(this);
}

View file

@ -67,7 +67,7 @@ public class ChaliceOfTheVoid extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ChaliceOfTheVoid copy() {
return new ChaliceOfTheVoid(this);
}
@ -83,17 +83,17 @@ class ChaliceOfTheVoidTriggeredAbility extends TriggeredAbilityImpl {
super(abiltity);
}
@java.lang.Override
@Override
public ChaliceOfTheVoidTriggeredAbility copy() {
return new ChaliceOfTheVoidTriggeredAbility(this);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.SPELL_CAST;
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
Permanent chalice = game.getPermanent(getSourceId());
Spell spell = game.getStack().getSpell(event.getTargetId());
@ -106,7 +106,7 @@ class ChaliceOfTheVoidTriggeredAbility extends TriggeredAbilityImpl {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return "Whenever a player casts a spell with converted mana cost equal to the number of charge counters on {this}, counter that spell.";
}
@ -122,12 +122,12 @@ class CounterEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public CounterEffect copy() {
return new CounterEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
return game.getStack().counter(this.getTargetPointer().getFirst(game, source), source.getSourceId(), game);
}

View file

@ -71,7 +71,7 @@ public class ChimneyImp extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ChimneyImp copy() {
return new ChimneyImp(this);
}
@ -88,12 +88,12 @@ class ChimneyImpEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public ChimneyImpEffect copy() {
return new ChimneyImpEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player targetOpponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));
if (targetOpponent != null) {

View file

@ -61,7 +61,7 @@ public class ChromaticSphere extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ChromaticSphere copy() {
return new ChromaticSphere(this);
}

View file

@ -76,7 +76,7 @@ public class ChromeMox extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ChromeMox copy() {
return new ChromeMox(this);
}
@ -99,7 +99,7 @@ class ChromeMoxEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
MageObject sourceObject = source.getSourceObject(game);
@ -126,7 +126,7 @@ class ChromeMoxEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ChromeMoxEffect copy() {
return new ChromeMoxEffect(this);
}
@ -144,12 +144,12 @@ class ChromeMoxManaEffect extends ManaEffect {
super(effect);
}
@java.lang.Override
@Override
public ChromeMoxManaEffect copy() {
return new ChromeMoxManaEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getSourceId());
Player player = game.getPlayer(source.getControllerId());
@ -206,7 +206,7 @@ class ChromeMoxManaEffect extends ManaEffect {
return true;
}
@java.lang.Override
@Override
public Mana getMana(Game game, Ability source) {
return null;
}

View file

@ -65,7 +65,7 @@ public class ClockworkBeetle extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ClockworkBeetle copy() {
return new ClockworkBeetle(this);
}
@ -81,7 +81,7 @@ class ClockworkBeetleEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
@ -93,7 +93,7 @@ class ClockworkBeetleEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ClockworkBeetleEffect copy() {
return new ClockworkBeetleEffect(this);
}

View file

@ -66,7 +66,7 @@ public class ClockworkCondor extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ClockworkCondor copy() {
return new ClockworkCondor(this);
}
@ -83,7 +83,7 @@ class ClockworkCondorEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
@ -93,7 +93,7 @@ class ClockworkCondorEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ClockworkCondorEffect copy() {
return new ClockworkCondorEffect(this);
}

View file

@ -70,7 +70,7 @@ public class ClockworkDragon extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ClockworkDragon copy() {
return new ClockworkDragon(this);
}
@ -87,7 +87,7 @@ class ClockworkDragonEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
@ -97,7 +97,7 @@ class ClockworkDragonEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ClockworkDragonEffect copy() {
return new ClockworkDragonEffect(this);
}

View file

@ -71,7 +71,7 @@ public class ClockworkVorrac extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ClockworkVorrac copy() {
return new ClockworkVorrac(this);
}
@ -88,7 +88,7 @@ class ClockworkVorracEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent p = game.getPermanent(source.getSourceId());
if (p != null) {
@ -98,7 +98,7 @@ class ClockworkVorracEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ClockworkVorracEffect copy() {
return new ClockworkVorracEffect(this);
}

View file

@ -65,7 +65,7 @@ public class Cloudpost extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Cloudpost copy() {
return new Cloudpost(this);
}

View file

@ -59,7 +59,7 @@ public class CobaltGolem extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public CobaltGolem copy() {
return new CobaltGolem(this);
}

View file

@ -86,7 +86,7 @@ public class ConfusionInTheRanks extends CardImpl {
this.originalId = card.originalId;
}
@java.lang.Override
@Override
public void adjustTargets(Ability ability, Game game) {
if (ability.getOriginalId().equals(originalId)) {
UUID enteringPermanentId = null;
@ -118,7 +118,7 @@ public class ConfusionInTheRanks extends CardImpl {
}
}
@java.lang.Override
@Override
public ConfusionInTheRanks copy() {
return new ConfusionInTheRanks(this);
}

View file

@ -47,7 +47,7 @@ public class ConsumeSpirit extends mage.sets.magic2010.ConsumeSpirit {
super(card);
}
@java.lang.Override
@Override
public ConsumeSpirit copy() {
return new ConsumeSpirit(this);
}

View file

@ -45,7 +45,7 @@ public class ContaminatedBond extends mage.sets.ninthedition.ContaminatedBond {
super(card);
}
@java.lang.Override
@Override
public ContaminatedBond copy() {
return new ContaminatedBond(this);
}

View file

@ -54,7 +54,7 @@ public class CopperMyr extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public CopperMyr copy() {
return new CopperMyr(this);
}

View file

@ -74,7 +74,7 @@ public class CopperhoofVorrac extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public CopperhoofVorrac copy() {
return new CopperhoofVorrac(this);
}

View file

@ -45,7 +45,7 @@ public class CreepingMold extends mage.sets.tenthedition.CreepingMold {
super(card);
}
@java.lang.Override
@Override
public CreepingMold copy() {
return new CreepingMold(this);
}

View file

@ -70,7 +70,7 @@ public class CrystalShard extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public CrystalShard copy() {
return new CrystalShard(this);
}
@ -91,12 +91,12 @@ class CrystalShardEffect extends OneShotEffect {
this.cost = effect.cost.copy();
}
@java.lang.Override
@Override
public CrystalShardEffect copy() {
return new CrystalShardEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {

View file

@ -71,7 +71,7 @@ public class CullingScales extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public CullingScales copy() {
return new CullingScales(this);
}
@ -80,7 +80,7 @@ public class CullingScales extends CardImpl {
class HasLowestCMCAmongstNonlandPermanentsPredicate implements Predicate<Permanent> {
@java.lang.Override
@Override
public boolean apply(Permanent input, Game game) {
FilterPermanent filter = new FilterNonlandPermanent();
filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.LessThan, input.getConvertedManaCost()));

View file

@ -65,7 +65,7 @@ public class DampingMatrix extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DampingMatrix copy() {
return new DampingMatrix(this);
}
@ -89,22 +89,22 @@ class DampingMatrixEffect extends ReplacementEffectImpl {
super(effect);
}
@java.lang.Override
@Override
public DampingMatrixEffect copy() {
return new DampingMatrixEffect(this);
}
@java.lang.Override
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
return true;
}
@java.lang.Override
@Override
public boolean checksEventType(GameEvent event, Game game) {
return event.getType() == EventType.ACTIVATE_ABILITY;
}
@java.lang.Override
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
MageObject object = game.getObject(event.getSourceId());
if (object instanceof Permanent && filter.match((Permanent)object, game)) {

View file

@ -63,7 +63,7 @@ public class Deconstruct extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Deconstruct copy() {
return new Deconstruct(this);
}

View file

@ -45,7 +45,7 @@ public class Detonate extends mage.sets.fifthedition.Detonate {
super(card);
}
@java.lang.Override
@Override
public Detonate copy() {
return new Detonate(this);
}

View file

@ -61,7 +61,7 @@ public class Disarm extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Disarm copy() {
return new Disarm(this);
}
@ -77,12 +77,12 @@ public class Disarm extends CardImpl {
super(effect);
}
@java.lang.Override
@Override
public DisarmEffect copy() {
return new DisarmEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent creature = game.getPermanent(targetPointer.getFirst(game, source));
if (creature != null) {

View file

@ -69,7 +69,7 @@ public class DiscipleOfTheVault extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DiscipleOfTheVault copy() {
return new DiscipleOfTheVault(this);
}

View file

@ -74,7 +74,7 @@ public class Domineer extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Domineer copy() {
return new Domineer(this);
}

View file

@ -60,7 +60,7 @@ public class DragonBlood extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DragonBlood copy() {
return new DragonBlood(this);
}

View file

@ -73,7 +73,7 @@ public class DreamsGrip extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DreamsGrip copy() {
return new DreamsGrip(this);
}

View file

@ -74,7 +74,7 @@ public class DrossHarvester extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DrossHarvester copy() {
return new DrossHarvester(this);
}

View file

@ -55,7 +55,7 @@ public class DrossProwler extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DrossProwler copy() {
return new DrossProwler(this);
}

View file

@ -68,7 +68,7 @@ public class DrossScorpion extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public DrossScorpion copy() {
return new DrossScorpion(this);
}

View file

@ -81,7 +81,7 @@ public class Duplicant extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Duplicant copy() {
return new Duplicant(this);
}
@ -97,12 +97,12 @@ class ExileTargetEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public ExileTargetEffect copy() {
return new ExileTargetEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
Permanent sourcePermananent = game.getPermanent(source.getSourceId());
@ -117,7 +117,7 @@ class ExileTargetEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public String getText(Mode mode) {
return "you may exile target nontoken creature";
}
@ -135,12 +135,12 @@ class DuplicantContinuousEffect extends ContinuousEffectImpl {
super(effect);
}
@java.lang.Override
@Override
public DuplicantContinuousEffect copy() {
return new DuplicantContinuousEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
Permanent permanent = game.getPermanent(source.getSourceId());
if (permanent != null) {
@ -172,12 +172,12 @@ class DuplicantContinuousEffect extends ContinuousEffectImpl {
return false;
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
return false;
}
@java.lang.Override
@Override
public boolean hasLayer(Layer layer) {
return layer == Layer.PTChangingEffects_7 || layer == Layer.TypeChangingEffects_4;
}

View file

@ -61,7 +61,7 @@ public class Duskworker extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Duskworker copy() {
return new Duskworker(this);
}

View file

@ -62,7 +62,7 @@ public class ElectrostaticBolt extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ElectrostaticBolt copy() {
return new ElectrostaticBolt(this);
}
@ -76,7 +76,7 @@ class ElectrostaticBoltDamageValue implements DynamicValue {
filter.add(new CardTypePredicate(CardType.ARTIFACT));
}
@java.lang.Override
@Override
public int calculate(Game game, Ability source, Effect effect) {
Permanent targetPermanent = game.getPermanent(source.getFirstTarget());
if(targetPermanent != null) {
@ -88,12 +88,12 @@ class ElectrostaticBoltDamageValue implements DynamicValue {
return 0;
}
@java.lang.Override
@Override
public ElectrostaticBoltDamageValue copy() {
return new ElectrostaticBoltDamageValue();
}
@java.lang.Override
@Override
public String getMessage() {
return "";
}

View file

@ -71,7 +71,7 @@ public class ElfReplica extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ElfReplica copy() {
return new ElfReplica(this);
}

View file

@ -61,7 +61,7 @@ public class EmpyrialPlate extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public EmpyrialPlate copy() {
return new EmpyrialPlate(this);
}

View file

@ -73,7 +73,7 @@ public class ExtraplanarLens extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ExtraplanarLens copy() {
return new ExtraplanarLens(this);
}
@ -96,7 +96,7 @@ class ExtraplanarLensImprintEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
Permanent extraplanarLens = game.getPermanentOrLKIBattlefield(source.getSourceId());
@ -118,7 +118,7 @@ class ExtraplanarLensImprintEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public ExtraplanarLensImprintEffect copy() {
return new ExtraplanarLensImprintEffect(this);
}
@ -135,12 +135,12 @@ class ExtraplanarLensTriggeredAbility extends TriggeredManaAbility {
super(ability);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.TAPPED_FOR_MANA;
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
Permanent landTappedForMana = game.getPermanentOrLKIBattlefield(event.getSourceId());
Permanent extraplanarLens = game.getPermanent(getSourceId());
@ -164,12 +164,12 @@ class ExtraplanarLensTriggeredAbility extends TriggeredManaAbility {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return new StringBuilder("Whenever a land with the same name as the exiled card is tapped for mana, ").append(super.getRule()).toString();
}
@java.lang.Override
@Override
public ExtraplanarLensTriggeredAbility copy() {
return new ExtraplanarLensTriggeredAbility(this);
}

View file

@ -45,7 +45,7 @@ public class Fabricate extends mage.sets.magic2010.Fabricate {
super(card);
}
@java.lang.Override
@Override
public Fabricate copy() {
return new Fabricate(this);
}

View file

@ -55,7 +55,7 @@ public class FangrenHunter extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public FangrenHunter copy() {
return new FangrenHunter(this);
}

View file

@ -56,7 +56,7 @@ public class FarsightMask extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public FarsightMask copy() {
return new FarsightMask(this);
}
@ -72,23 +72,23 @@ class FarsightMaskTriggeredAbility extends TriggeredAbilityImpl {
super(ability);
}
@java.lang.Override
@Override
public FarsightMaskTriggeredAbility copy() {
return new FarsightMaskTriggeredAbility(this);
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType().equals(GameEvent.EventType.DAMAGED_PLAYER);
}
@java.lang.Override
@Override
public boolean checkInterveningIfClause(Game game) {
Permanent permanent = game.getPermanent(getSourceId());
return permanent != null && !permanent.isTapped();
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getTargetId().equals(controllerId)) {
UUID sourceControllerId = game.getControllerId(event.getSourceId());
@ -99,7 +99,7 @@ class FarsightMaskTriggeredAbility extends TriggeredAbilityImpl {
return false;
}
@java.lang.Override
@Override
public String getRule() {
return "Whenever a source an opponent controls deals damage to you, if {this} is untapped, you may draw a card.";
}

View file

@ -71,7 +71,7 @@ public class Fatespinner extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Fatespinner copy() {
return new Fatespinner(this);
}
@ -96,12 +96,12 @@ class FatespinnerChooseEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public FatespinnerChooseEffect copy() {
return new FatespinnerChooseEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(getTargetPointer().getFirst(game, source));
if(player != null) {
@ -136,17 +136,17 @@ class FatespinnerSkipEffect extends ReplacementEffectImpl {
this.phase = effect.phase;
}
@java.lang.Override
@Override
public FatespinnerSkipEffect copy() {
return new FatespinnerSkipEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@java.lang.Override
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
EventType type = event.getType();
return ((phase.equals("Draw step") && type == EventType.DRAW_STEP)
@ -154,14 +154,14 @@ class FatespinnerSkipEffect extends ReplacementEffectImpl {
|| (phase.equals("Combat phase") && type == EventType.COMBAT_PHASE));
}
@java.lang.Override
@Override
public boolean checksEventType(GameEvent event, Game game) {
EventType type = event.getType();
return (type == EventType.DRAW_STEP || type == EventType.PRECOMBAT_MAIN_PHASE
|| type == EventType.POSTCOMBAT_MAIN_PHASE || type == EventType.COMBAT_PHASE);
}
@java.lang.Override
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return true;
}

View file

@ -62,7 +62,7 @@ public class FieryGambit extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public FieryGambit copy() {
return new FieryGambit(this);
}
@ -79,12 +79,12 @@ class FieryGambitEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public FieryGambitEffect copy() {
return new FieryGambitEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
MageObject sourceObject = source.getSourceObject(game);

View file

@ -45,7 +45,7 @@ public class Fireshrieker extends mage.sets.magic2014.Fireshrieker {
super(card);
}
@java.lang.Override
@Override
public Fireshrieker copy() {
return new Fireshrieker(this);
}

View file

@ -45,7 +45,7 @@ public class FistsOfTheAnvil extends mage.sets.tenthedition.FistsOfTheAnvil {
super(card);
}
@java.lang.Override
@Override
public FistsOfTheAnvil copy() {
return new FistsOfTheAnvil(this);
}

View file

@ -44,7 +44,7 @@ public class Forest1 extends mage.cards.basiclands.Forest {
super(card);
}
@java.lang.Override
@Override
public Forest1 copy() {
return new Forest1(this);
}

View file

@ -44,7 +44,7 @@ public class Forest2 extends mage.cards.basiclands.Forest {
super(card);
}
@java.lang.Override
@Override
public Forest2 copy() {
return new Forest2(this);
}

View file

@ -44,7 +44,7 @@ public class Forest3 extends mage.cards.basiclands.Forest {
super(card);
}
@java.lang.Override
@Override
public Forest3 copy() {
return new Forest3(this);
}

View file

@ -44,7 +44,7 @@ public class Forest4 extends mage.cards.basiclands.Forest {
super(card);
}
@java.lang.Override
@Override
public Forest4 copy() {
return new Forest4(this);
}

View file

@ -61,7 +61,7 @@ public class ForgeArmor extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public ForgeArmor copy() {
return new ForgeArmor(this);
}

View file

@ -45,7 +45,7 @@ public class Frogmite extends mage.sets.elspethvstezzeret.Frogmite {
super(card);
}
@java.lang.Override
@Override
public Frogmite copy() {
return new Frogmite(this);
}

View file

@ -69,7 +69,7 @@ public class GalvanicKey extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GalvanicKey copy() {
return new GalvanicKey(this);
}

View file

@ -60,7 +60,7 @@ public class GateToTheAether extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GateToTheAether copy() {
return new GateToTheAether(this);
}
@ -77,12 +77,12 @@ class GateToTheAetherEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public GateToTheAetherEffect copy() {
return new GateToTheAetherEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player activePlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));
if (activePlayer != null) {

View file

@ -45,7 +45,7 @@ public class GildedLotus extends mage.sets.magic2013.GildedLotus {
super(card);
}
@java.lang.Override
@Override
public GildedLotus copy() {
return new GildedLotus(this);
}

View file

@ -60,7 +60,7 @@ public class Glimmervoid extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Glimmervoid copy() {
return new Glimmervoid(this);
}
@ -78,27 +78,27 @@ class GlimmervoidTriggeredAbility extends TriggeredAbilityImpl {
super(ability);
}
@java.lang.Override
@Override
public GlimmervoidTriggeredAbility copy() {
return new GlimmervoidTriggeredAbility(this);
}
@java.lang.Override
@Override
public boolean checkInterveningIfClause(Game game) {
return game.getBattlefield().countAll(filter, controllerId, game) == 0;
}
@java.lang.Override
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.END_TURN_STEP_PRE;
}
@java.lang.Override
@Override
public boolean checkTrigger(GameEvent event, Game game) {
return true;
}
@java.lang.Override
@Override
public String getRule() {
return "At the beginning of the end step, if you control no artifacts, sacrifice {this}.";
}

View file

@ -72,7 +72,7 @@ public class GlissaSunseeker extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GlissaSunseeker copy() {
return new GlissaSunseeker(this);
}
@ -89,12 +89,12 @@ class GlissaSunseekerEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public GlissaSunseekerEffect copy() {
return new GlissaSunseekerEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
ManaPool pool = controller.getManaPool();

View file

@ -68,7 +68,7 @@ public class GoblinCharbelcher extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoblinCharbelcher copy() {
return new GoblinCharbelcher(this);
}
@ -85,12 +85,12 @@ class GoblinCharbelcherEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public GoblinCharbelcherEffect copy() {
return new GoblinCharbelcherEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
boolean isMountain = false;
MageObject sourceObject = game.getObject(source.getSourceId());

View file

@ -68,7 +68,7 @@ public class GoblinDirigible extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoblinDirigible copy() {
return new GoblinDirigible(this);
}

View file

@ -71,7 +71,7 @@ public class GoblinReplica extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoblinReplica copy() {
return new GoblinReplica(this);
}

View file

@ -58,7 +58,7 @@ public class GoblinStriker extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoblinStriker copy() {
return new GoblinStriker(this);
}

View file

@ -65,7 +65,7 @@ public class GoblinWarWagon extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoblinWarWagon copy() {
return new GoblinWarWagon(this);
}

View file

@ -54,7 +54,7 @@ public class GoldMyr extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GoldMyr copy() {
return new GoldMyr(this);
}

View file

@ -62,7 +62,7 @@ public class GolemSkinGauntlets extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GolemSkinGauntlets copy() {
return new GolemSkinGauntlets(this);
}
@ -78,7 +78,7 @@ class GolemSkinGauntletsAttachedCount implements DynamicValue {
public GolemSkinGauntletsAttachedCount(final GolemSkinGauntletsAttachedCount dynamicValue) {
}
@java.lang.Override
@Override
public int calculate(Game game, Ability source, Effect effect) {
int count = 0;
Permanent equipment = game.getPermanent(source.getSourceId());
@ -98,17 +98,17 @@ class GolemSkinGauntletsAttachedCount implements DynamicValue {
return count;
}
@java.lang.Override
@Override
public DynamicValue copy() {
return new GolemSkinGauntletsAttachedCount(this);
}
@java.lang.Override
@Override
public String toString() {
return "1";
}
@java.lang.Override
@Override
public String getMessage() {
return "Equipment attached to it";
}

View file

@ -89,7 +89,7 @@ public class GrabTheReins extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GrabTheReins copy() {
return new GrabTheReins(this);
}
@ -106,7 +106,7 @@ class GrabTheReinsEffect extends OneShotEffect {
super(effect);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
UUID controllerId = source.getControllerId();
Target target = new TargetCreaturePermanent();
@ -142,7 +142,7 @@ class GrabTheReinsEffect extends OneShotEffect {
return false;
}
@java.lang.Override
@Override
public GrabTheReinsEffect copy() {
return new GrabTheReinsEffect(this);
}

View file

@ -64,7 +64,7 @@ public class GraniteShard extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GraniteShard copy() {
return new GraniteShard(this);
}

View file

@ -50,7 +50,7 @@ public class GreatFurnace extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GreatFurnace copy() {
return new GreatFurnace(this);
}

View file

@ -63,7 +63,7 @@ public class GridMonitor extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public GridMonitor copy() {
return new GridMonitor(this);
}
@ -80,17 +80,17 @@ class GridMonitorEffect extends ContinuousRuleModifyingEffectImpl {
super(effect);
}
@java.lang.Override
@Override
public GridMonitorEffect copy() {
return new GridMonitorEffect(this);
}
@java.lang.Override
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@java.lang.Override
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.CAST_SPELL && event.getPlayerId().equals(source.getControllerId())) {
MageObject object = game.getObject(event.getSourceId());

View file

@ -68,7 +68,7 @@ public class Groffskithur extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public Groffskithur copy() {
return new Groffskithur(this);
}

View file

@ -68,7 +68,7 @@ public class HeartwoodShard extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public HeartwoodShard copy() {
return new HeartwoodShard(this);
}

View file

@ -59,7 +59,7 @@ public class HematiteGolem extends CardImpl {
super(card);
}
@java.lang.Override
@Override
public HematiteGolem copy() {
return new HematiteGolem(this);
}

View file

@ -45,7 +45,7 @@ public class IcyManipulator extends mage.sets.tenthedition.IcyManipulator {
super(card);
}
@java.lang.Override
@Override
public IcyManipulator copy() {
return new IcyManipulator(this);
}

Some files were not shown because too many files have changed in this diff Show more