[WAR] - added token image;

This commit is contained in:
Oleg Agafonov 2019-04-03 13:02:21 +04:00
parent c6e262b0ed
commit 6c3b48b2a7
3 changed files with 10 additions and 8 deletions

View file

@ -1197,4 +1197,5 @@
|Generate|TOK:RNA|Spirit|||SpiritWhiteToken|
|Generate|TOK:RNA|Thopter|||ThopterToken|
|Generate|TOK:RNA|Treasure|||TreasureToken|
|Generate|TOK:RNA|Zombie|||ZombieToken|
|Generate|TOK:RNA|Zombie|||ZombieToken|
|Generate|TOK:WAR|Zombie Army|||ZombieArmyToken|

View file

@ -13,7 +13,7 @@ import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.AmassToken;
import mage.game.permanent.token.ZombieArmyToken;
import mage.players.Player;
import mage.target.Target;
import mage.target.TargetPermanent;
@ -69,7 +69,7 @@ public class AmassEffect extends OneShotEffect {
return false;
}
if (!game.getBattlefield().contains(filter, 1, game)) {
new CreateTokenEffect(new AmassToken()).apply(game, source);
new CreateTokenEffect(new ZombieArmyToken()).apply(game, source);
}
Target target = new TargetPermanent(filter);
target.setNotTarget(true);

View file

@ -8,10 +8,11 @@ import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class AmassToken extends TokenImpl {
public final class ZombieArmyToken extends TokenImpl {
public AmassToken() {
public ZombieArmyToken() {
super("Zombie Army", "0/0 black Zombie Army creature token");
setExpansionSetCodeForImage("WAR"); // default
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add(SubType.ZOMBIE);
@ -20,12 +21,12 @@ public final class AmassToken extends TokenImpl {
toughness = new MageInt(0);
}
private AmassToken(final AmassToken token) {
private ZombieArmyToken(final ZombieArmyToken token) {
super(token);
}
@Override
public AmassToken copy() {
return new AmassToken(this);
public ZombieArmyToken copy() {
return new ZombieArmyToken(this);
}
}