forked from External/mage
Tokens and command objects reworked (part 2 of 2, tokens/emblems)
This commit is contained in:
parent
5f55c7c667
commit
f2d93f224f
591 changed files with 1368 additions and 4425 deletions
|
|
@ -9,9 +9,6 @@ import mage.abilities.effects.common.GainLifeEffect;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author jmharmon
|
||||
|
|
@ -31,21 +28,6 @@ public final class FoodToken extends TokenImpl {
|
|||
cost.setText("Sacrifice this artifact");
|
||||
ability.addCost(cost);
|
||||
this.addAbility(ability);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ELD", "C21", "MH2", "NCC", "MOC");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("ELD")) {
|
||||
setTokenType(RandomUtil.nextInt(4) + 1); // 1..4
|
||||
}
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MH2")) {
|
||||
setTokenType(RandomUtil.nextInt(2) + 1); // 1..2
|
||||
}
|
||||
}
|
||||
|
||||
public FoodToken(final FoodToken token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue