Created 6 cards. (High probability for minor errors.)

This commit is contained in:
Temba 2015-03-15 21:58:55 +02:00
parent 4f96768df2
commit 0311a654f2
4 changed files with 12 additions and 25 deletions

View file

@ -65,16 +65,14 @@ public class WormfangDrake extends CardImpl {
this.subtype.add("Drake");
this.power = new MageInt(3);
this.toughness = new MageInt(4);
this.color.setBlue(true);
// Flying
this.addAbility(FlyingAbility.getInstance());
//
//When Wormfang Drake enters the battlefield, sacriice it unless you exile a creature you control other than Wormfang Drake.
Ability ability1;
ability1 = new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ExileTargetCost( new TargetControlledPermanent(filter))), true);
ability1 = new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ExileTargetCost(new TargetControlledPermanent(filter))), true);
Target target = new TargetPermanent(filter);
ability1.addTarget(target);
this.addAbility(ability1);
@ -83,7 +81,6 @@ public class WormfangDrake extends CardImpl {
Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
this.addAbility(ability2);
}
public WormfangDrake(final WormfangDrake card) {

View file

@ -49,8 +49,7 @@ public class SymbioticBeast extends CardImpl {
this.subtype.add("Beast");
this.power = new MageInt(4);
this.toughness = new MageInt(4);
this.color.setGreen(true);
// When Symbiotic Beast dies, put four 1/1 green Insect creature tokens onto the battlefield.
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new InsectToken(), 4)));
}

View file

@ -65,11 +65,7 @@ public class FacelessButcher extends CardImpl {
this.subtype.add("Horror");
this.power = new MageInt(2);
this.toughness = new MageInt(3);
this.color.setBlack(true);
// When Faceless Butcher enters the battlefield, exile target creature other than Faceless Butcher.
Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetForSourceEffect(), false);
@ -77,8 +73,6 @@ public class FacelessButcher extends CardImpl {
ability1.addTarget(target);
this.addAbility(ability1);
// When Faceless Butcher leaves the battlefield, return the exiled card to the battlefield under its owner's control.
Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
this.addAbility(ability2);

View file

@ -56,27 +56,24 @@ public class ShadesForm extends CardImpl {
super(ownerId, 81, "Shade's Form", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}{B}");
this.expansionSetCode = "TOR";
this.subtype.add("Aura");
this.color.setBlack(true);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
// Enchanted creature has "{B}: This creature gets +1/+1 until end of turn."
this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility)); //mikä on oikea outcome + tutki koodia
Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability);
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BoostEnchantedEffect(1, 1, Duration.EndOfTurn),
new ColoredManaCost(ColoredManaSymbol.B)));
// {B}: Enchanted creature gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.EndOfTurn), new ColoredManaCost(ColoredManaSymbol.B)));
// When enchanted creature dies, return that card to the battlefield under your control.
// When enchanted creature dies, return that card to the battlefield under your control.
this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToBattlefieldUnderYourControlAttachedEffect(), "enchanted creature"));
}
public ShadesForm(final ShadesForm card) {
super(card);
}