mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Join the Ranks - Fixed that the created tokens had no Ally subtype and no name "Soldier Ally".
This commit is contained in:
parent
5dc2a1b8f5
commit
125a7acb54
1 changed files with 18 additions and 0 deletions
|
@ -29,11 +29,13 @@
|
||||||
package mage.sets.worldwake;
|
package mage.sets.worldwake;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import mage.MageInt;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.game.permanent.token.SoldierToken;
|
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}");
|
super(ownerId, 9, "Join the Ranks", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{3}{W}");
|
||||||
this.expansionSetCode = "WWK";
|
this.expansionSetCode = "WWK";
|
||||||
this.color.setWhite(true);
|
this.color.setWhite(true);
|
||||||
|
|
||||||
|
// Put two 1/1 white Soldier Ally creature tokens onto the battlefield.
|
||||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new SoldierToken(), 2));
|
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue