forked from External/mage
* Images: fixed that some tokens uses wrong images of Elemental (#5834);
This commit is contained in:
parent
f2f1abd0f3
commit
4006e9e909
19 changed files with 129 additions and 119 deletions
|
|
@ -0,0 +1,42 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
/**
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class RedElementalWithTrampleAndHaste extends TokenImpl {
|
||||
|
||||
public RedElementalWithTrampleAndHaste() {
|
||||
super("Elemental", "7/1 red Elemental creature token with trample and haste");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.ELEMENTAL);
|
||||
power = new MageInt(7);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(TrampleAbility.getInstance());
|
||||
addAbility(HasteAbility.getInstance());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("ZEN")) {
|
||||
setTokenType(RandomUtil.nextInt(2) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
public RedElementalWithTrampleAndHaste(final RedElementalWithTrampleAndHaste token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public RedElementalWithTrampleAndHaste copy() {
|
||||
return new RedElementalWithTrampleAndHaste(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue