remove unused method Card.build()

This commit is contained in:
Neil Gentleman 2016-07-17 18:37:38 -07:00
parent e40329e6e2
commit 592cd55518
15 changed files with 0 additions and 49 deletions

View file

@ -57,10 +57,6 @@ public class AjaniCallerOfThePride extends CardImpl {
super(ownerId,setInfo,new CardType[]{CardType.PLANESWALKER},"{1}{W}{W}");
this.subtype.add("Ajani");
}
@Override
public void build() {
this.addAbility(new PlanswalkerEntersWithLoyalityCountersAbility(4));
// +1: Put a +1/+1 counter on up to one target creature.
Effect effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance());

View file

@ -59,10 +59,7 @@ public class AkromasMemorial extends CardImpl {
public AkromasMemorial(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{7}");
this.supertype.add("Legendary");
}
@Override
public void build() {
// Creatures you control have flying, first strike, vigilance, trample, haste, and protection from black and from red.
CompoundAbility compoundAbilities = new CompoundAbility(FlyingAbility.getInstance(), FirstStrikeAbility.getInstance(), VigilanceAbility.getInstance(), TrampleAbility.getInstance(), HasteAbility.getInstance(), new ProtectionAbility(protectionFilter));
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(compoundAbilities, Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Creatures"))));

View file

@ -50,10 +50,7 @@ public class AttendedKnight extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
}
@Override
public void build() {
// First strike
this.addAbility(FirstStrikeAbility.getInstance());
// When Attended Knight enters the battlefield, create a 1/1 white Soldier creature token.

View file

@ -53,10 +53,7 @@ public class BattleflightEagle extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(2);
}
@Override
public void build() {
// Flying
this.addAbility(FlyingAbility.getInstance());
// When Battleflight Eagle enters the battlefield, target creature gets +2/+2 and gains flying until end of turn.

View file

@ -43,10 +43,6 @@ public class CaptainsCall extends CardImpl {
public CaptainsCall(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{W}");
}
@Override
public void build() {
// Create three 1/1 white Soldier creature tokens.
this.getSpellAbility().addEffect(new CreateTokenEffect(new SoldierToken(), 3));
}

View file

@ -53,10 +53,7 @@ public class Chronomaton extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
}
@Override
public void build() {
// {1}, {tap}: Put a +1/+1 counter on Chronomaton.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new GenericManaCost(1));
ability.addCost(new TapSourceCost());

View file

@ -53,10 +53,7 @@ public class CrusaderOfOdric extends CardImpl {
this.power = new MageInt(0);
this.toughness = new MageInt(0);
}
@Override
public void build() {
// Crusader of Odric's power and toughness are each equal to the number of creatures you control.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent()), Duration.EndOfGame)));
}

View file

@ -50,10 +50,7 @@ public class GriffinProtector extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(3);
}
@Override
public void build() {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Whenever another creature enters the battlefield under your control, Griffin Protector gets +1/+1 until end of turn.

View file

@ -48,10 +48,7 @@ public class HealerOfThePride extends CardImpl {
this.power = new MageInt(2);
this.toughness = new MageInt(3);
}
@Override
public void build() {
// Whenever another creature enters the battlefield under your control, you gain 2 life.
this.addAbility(new EntersAnotherCreatureYourControlTriggeredAbility(new GainLifeEffect(2)));
}

View file

@ -50,10 +50,7 @@ public class RavenousSkirge extends CardImpl {
this.power = new MageInt(1);
this.toughness = new MageInt(1);
}
@Override
public void build() {
// Flying
this.addAbility(FlyingAbility.getInstance());
// Whenever Ravenous Skirge attacks, it gets +2/+0 until end of turn.

View file

@ -55,10 +55,7 @@ public class SpinedFluke extends CardImpl {
this.power = new MageInt(5);
this.toughness = new MageInt(1);
}
@Override
public void build() {
// When Spined Fluke enters the battlefield, sacrifice a creature.
this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeControllerEffect(new FilterCreaturePermanent("a creature"), 1, "")));
// {B}: Regenerate Spined Fluke.

View file

@ -48,10 +48,7 @@ public class TeferisPuzzleBox extends CardImpl {
public TeferisPuzzleBox(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
}
@Override
public void build() {
// At the beginning of each player's draw step, that player puts the cards in his or her hand on the bottom of his or her library in any order, then draws that many cards.
Ability ability = new BeginningOfDrawTriggeredAbility(new TeferisPuzzleBoxEffect(), TargetController.ANY, false);
this.addAbility(ability);

View file

@ -147,8 +147,6 @@ public interface Card extends MageObject {
List<Mana> getMana();
void build();
/**
*
* @return true if there exists various art images for this card

View file

@ -190,7 +190,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
Constructor<?> con = clazz.getConstructor(UUID.class, CardSetInfo.class);
card = (Card) con.newInstance(null, setInfo);
}
card.build();
return card;
} catch (Exception e) {
logger.fatal("Error loading card: " + clazz.getCanonicalName(), e);
@ -597,10 +596,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
return splitCard;
}
@Override
public void build() {
}
@Override
public boolean getUsesVariousArt() {
return usesVariousArt;

View file

@ -840,10 +840,6 @@ public class Spell extends StackObjImpl implements Card {
return isCopiedSpell();
}
@Override
public void build() {
}
@Override
public Counters getCounters(Game game) {
return card.getCounters(game);