mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
remove unused method Card.build()
This commit is contained in:
parent
e40329e6e2
commit
592cd55518
15 changed files with 0 additions and 49 deletions
|
@ -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());
|
||||
|
|
|
@ -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"))));
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue