* Join the Ranks - Fixed that the created tokens had no Ally subtype and no name "Soldier Ally".

This commit is contained in:
LevelX2 2014-07-14 17:39:52 +02:00
parent 5dc2a1b8f5
commit 125a7acb54

View file

@ -29,11 +29,13 @@
package mage.sets.worldwake;
import java.util.UUID;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.game.permanent.token.SoldierToken;
import mage.game.permanent.token.Token;
/**
*
@ -45,6 +47,8 @@ public class JoinTheRanks extends CardImpl {
super(ownerId, 9, "Join the Ranks", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{3}{W}");
this.expansionSetCode = "WWK";
this.color.setWhite(true);
// Put two 1/1 white Soldier Ally creature tokens onto the battlefield.
this.getSpellAbility().addEffect(new CreateTokenEffect(new SoldierToken(), 2));
}
@ -58,3 +62,17 @@ public class JoinTheRanks extends CardImpl {
}
}
class JoinTheRanksSoldierToken extends Token {
public JoinTheRanksSoldierToken() {
super("Soldier Ally", "1/1 white Soldier Ally creature token");
this.setOriginalExpansionSetCode("WWK");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Soldier");
subtype.add("Ally");
power = new MageInt(1);
toughness = new MageInt(1);
}
}