mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
completed suggestions for IKO tokens
This commit is contained in:
parent
8bea930a69
commit
f3bde1dbab
6 changed files with 23 additions and 42 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);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,13 +1,11 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DinosaurBeastToken extends TokenImpl {
|
||||
|
|
@ -23,10 +21,11 @@ public final class DinosaurBeastToken extends TokenImpl {
|
|||
addAbility(TrampleAbility.getInstance());
|
||||
}
|
||||
|
||||
public DinosaurBeastToken(final DinosaurBeastToken token) {
|
||||
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