forked from External/mage
[MPS-AKH] Added Amonkhet Masterpiece reprints. [MM3] Token updates
This commit is contained in:
parent
212f963b43
commit
1bf2d1782c
23 changed files with 198 additions and 39 deletions
|
|
@ -28,6 +28,9 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.constants.CardType;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
|
|
@ -38,6 +41,12 @@ import mage.abilities.keyword.HasteAbility;
|
|||
*/
|
||||
public class SoldierTokenWithHaste extends Token {
|
||||
|
||||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("GTC", "MM3"));
|
||||
}
|
||||
|
||||
public SoldierTokenWithHaste() {
|
||||
super("Soldier", "1/1 red and white Soldier creature token with haste");
|
||||
cardType.add(CardType.CREATURE);
|
||||
|
|
@ -47,6 +56,23 @@ public class SoldierTokenWithHaste extends Token {
|
|||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(HasteAbility.getInstance());
|
||||
setOriginalExpansionSetCode("GTC");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MM3")) {
|
||||
setTokenType(2);
|
||||
}
|
||||
}
|
||||
|
||||
public SoldierTokenWithHaste(final SoldierTokenWithHaste token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoldierTokenWithHaste copy() {
|
||||
return new SoldierTokenWithHaste(this); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue