mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
[RIX] Remove a duplicate token
This commit is contained in:
parent
87a999ca0e
commit
813e1816ea
3 changed files with 7 additions and 34 deletions
|
@ -20,7 +20,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.cards.CardsImpl;
|
import mage.cards.CardsImpl;
|
||||||
import mage.constants.*;
|
import mage.constants.*;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.token.TilonallisSummonerElementalToken;
|
import mage.game.permanent.token.RedElementalToken;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
import mage.target.targetpointer.FixedTargets;
|
import mage.target.targetpointer.FixedTargets;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class TilonallisSummonerEffect extends OneShotEffect {
|
||||||
cost.add(new GenericManaCost(costX));
|
cost.add(new GenericManaCost(costX));
|
||||||
if (cost.pay(source, game, source, source.getControllerId(), false, null)) {
|
if (cost.pay(source, game, source, source.getControllerId(), false, null)) {
|
||||||
controller.resetStoredBookmark(game); // otherwise you can undo the payment
|
controller.resetStoredBookmark(game); // otherwise you can undo the payment
|
||||||
CreateTokenEffect effect = new CreateTokenEffect(new TilonallisSummonerElementalToken(), costX, true, true);
|
CreateTokenEffect effect = new CreateTokenEffect(new RedElementalToken(), costX, true, true);
|
||||||
effect.apply(game, source);
|
effect.apply(game, source);
|
||||||
Effect exileEffect = new ExileTargetEffect(null, "", Zone.BATTLEFIELD)
|
Effect exileEffect = new ExileTargetEffect(null, "", Zone.BATTLEFIELD)
|
||||||
.setText("exile those tokens unless you have the city's blessing");
|
.setText("exile those tokens unless you have the city's blessing");
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class RedElementalToken extends TokenImpl {
|
||||||
power = new MageInt(1);
|
power = new MageInt(1);
|
||||||
toughness = new MageInt(1);
|
toughness = new MageInt(1);
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("C13", "EMA", "M14", "SHM", "MH1", "M20");
|
availableImageSetCodes = Arrays.asList("C13", "EMA", "M14", "SHM", "MH1", "M20", "RIX");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -35,6 +35,10 @@ public final class RedElementalToken extends TokenImpl {
|
||||||
setTokenType(RandomUtil.nextInt(2) + 1);
|
setTokenType(RandomUtil.nextInt(2) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("RIX")) {
|
||||||
|
setTokenType(2);
|
||||||
|
}
|
||||||
|
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("SHM")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("SHM")) {
|
||||||
setTokenType(2);
|
setTokenType(2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
package mage.game.permanent.token;
|
|
||||||
|
|
||||||
import mage.MageInt;
|
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.constants.SubType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author LevelX2
|
|
||||||
*/
|
|
||||||
public final class TilonallisSummonerElementalToken extends TokenImpl {
|
|
||||||
|
|
||||||
public TilonallisSummonerElementalToken() {
|
|
||||||
super("Elemental", "1/1 red Elemental creature tokens");
|
|
||||||
cardType.add(CardType.CREATURE);
|
|
||||||
subtype.add(SubType.ELEMENTAL);
|
|
||||||
color.setRed(true);
|
|
||||||
power = new MageInt(1);
|
|
||||||
toughness = new MageInt(1);
|
|
||||||
|
|
||||||
setTokenType(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public TilonallisSummonerElementalToken(final TilonallisSummonerElementalToken token) {
|
|
||||||
super(token);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public TilonallisSummonerElementalToken copy() {
|
|
||||||
return new TilonallisSummonerElementalToken(this);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue