Added KnightToken to framework and changed the using cards.

This commit is contained in:
LevelX2 2013-04-20 20:02:01 +02:00
parent 01a610746b
commit 18639bddd9
5 changed files with 27 additions and 32 deletions

View file

@ -30,12 +30,9 @@ package mage.sets.gatecrash;
import java.util.UUID;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.game.permanent.token.Token;
import mage.game.permanent.token.KnightToken;
/**
*
@ -62,15 +59,3 @@ public class KnightWatch extends CardImpl<KnightWatch> {
return new KnightWatch(this);
}
}
class KnightToken extends Token {
KnightToken() {
super("Knight", "2/2 white Knight creature tokens with vigilance");
cardType.add(CardType.CREATURE);
color = ObjectColor.WHITE;
subtype.add("Knight");
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(VigilanceAbility.getInstance());
}
}

View file

@ -45,6 +45,7 @@ import mage.abilities.effects.common.continious.GainAbilityAttachedEffect;
import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.game.permanent.token.KnightToken;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;

View file

@ -48,6 +48,7 @@ import mage.abilities.keyword.EnchantAbility;
import mage.cards.CardImpl;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.token.KnightToken;
import mage.target.TargetPermanent;
import mage.target.common.TargetLandPermanent;

View file

@ -31,20 +31,17 @@ import java.util.UUID;
import mage.Constants;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.Mode;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.abilities.effects.common.continious.BoostTargetEffect;
import mage.abilities.effects.common.continious.GainAbilityTargetEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardImpl;
import mage.filter.Filter;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.PowerPredicate;
import mage.game.permanent.token.Token;
import mage.game.permanent.token.KnightToken;
import mage.target.common.TargetCreaturePermanent;
/**
@ -91,15 +88,3 @@ public class SelesnyaCharm extends CardImpl<SelesnyaCharm> {
return new SelesnyaCharm(this);
}
}
class KnightToken extends Token {
KnightToken() {
super("Knight", "2/2 white Knight creature token with vigilance");
cardType.add(CardType.CREATURE);
color = ObjectColor.WHITE;
subtype.add("Knight");
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(VigilanceAbility.getInstance());
}
}

View file

@ -0,0 +1,23 @@
package mage.game.permanent.token;
import mage.Constants.CardType;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.keyword.VigilanceAbility;
/**
*
* @author LevelX2
*/
public class KnightToken extends Token {
public KnightToken() {
super("Knight", "2/2 white Knight creature token with vigilance");
cardType.add(CardType.CREATURE);
color = ObjectColor.WHITE;
subtype.add("Knight");
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(VigilanceAbility.getInstance());
}
}