mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Merge pull request #6510 from gp66/completed-suggestions-iko-tokens
Completed suggestions iko tokens
This commit is contained in:
commit
2739391b1d
6 changed files with 71 additions and 34 deletions
|
|
@ -1,31 +0,0 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BeastXToken extends TokenImpl {
|
||||
|
||||
public BeastXToken(int xValue) {
|
||||
super("Beast", "X/X green Beast creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.BEAST);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
addAbility(TrampleAbility.getInstance());
|
||||
}
|
||||
|
||||
private BeastXToken(final BeastXToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BeastXToken copy() {
|
||||
return new BeastXToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DinosaurBeastToken extends TokenImpl {
|
||||
|
||||
public DinosaurBeastToken(int xValue) {
|
||||
super("Dinosaur Beast", "X/X green Dinosaur Beast creature token with trample");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.DINOSAUR);
|
||||
subtype.add(SubType.BEAST);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
addAbility(TrampleAbility.getInstance());
|
||||
}
|
||||
|
||||
private DinosaurBeastToken(final DinosaurBeastToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DinosaurBeastToken copy() {
|
||||
return new DinosaurBeastToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@ package mage.game.permanent.token;
|
|||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
public final class HumanSoldierToken extends TokenImpl {
|
||||
|
||||
|
|
@ -16,6 +17,15 @@ public final class HumanSoldierToken extends TokenImpl {
|
|||
toughness = new MageInt(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("IKO")) {
|
||||
setTokenType(RandomUtil.nextInt(3) + 1); // 1...3
|
||||
}
|
||||
}
|
||||
|
||||
public HumanSoldierToken(final HumanSoldierToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue