mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Some more token image handling changes.
This commit is contained in:
parent
f065315b2f
commit
61b5609ae9
4 changed files with 78 additions and 71 deletions
|
|
@ -45,11 +45,10 @@ public class FeralIncarnation extends CardImpl {
|
||||||
super(ownerId, 174, "Feral Incarnation", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{8}{G}");
|
super(ownerId, 174, "Feral Incarnation", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{8}{G}");
|
||||||
this.expansionSetCode = "M15";
|
this.expansionSetCode = "M15";
|
||||||
|
|
||||||
|
|
||||||
// Convoke
|
// Convoke
|
||||||
this.addAbility(new ConvokeAbility());
|
this.addAbility(new ConvokeAbility());
|
||||||
// Put three 3/3 green Beast creature tokens onto the battlefield.
|
// Put three 3/3 green Beast creature tokens onto the battlefield.
|
||||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new BeastToken("M15", 1), 3));
|
this.getSpellAbility().addEffect(new CreateTokenEffect(new BeastToken(), 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
public FeralIncarnation(final FeralIncarnation card) {
|
public FeralIncarnation(final FeralIncarnation card) {
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,9 @@ public class SoulOfZendikar extends CardImpl {
|
||||||
// Reach
|
// Reach
|
||||||
this.addAbility(ReachAbility.getInstance());
|
this.addAbility(ReachAbility.getInstance());
|
||||||
// {3}{G}{G}: Put a 3/3 green Beast creature token onto the battlefield.
|
// {3}{G}{G}: Put a 3/3 green Beast creature token onto the battlefield.
|
||||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new BeastToken("M15")), new ManaCostsImpl("{3}{G}{G}")));
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new BeastToken()), new ManaCostsImpl("{3}{G}{G}")));
|
||||||
// {3}{G}{G}, Exile Soul of Zendikar from your graveyard: Put a 3/3 green Beast creature token onto the battlefield.
|
// {3}{G}{G}, Exile Soul of Zendikar from your graveyard: Put a 3/3 green Beast creature token onto the battlefield.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new CreateTokenEffect(new BeastToken("M15")), new ManaCostsImpl("{3}{G}{G}"));
|
Ability ability = new SimpleActivatedAbility(Zone.GRAVEYARD, new CreateTokenEffect(new BeastToken()), new ManaCostsImpl("{3}{G}{G}"));
|
||||||
ability.addCost(new ExileSourceFromGraveCost());
|
ability.addCost(new ExileSourceFromGraveCost());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,11 @@
|
||||||
* authors and should not be interpreted as representing official policies, either expressed
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
* or implied, of BetaSteward_at_googlemail.com.
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package mage.game.permanent.token;
|
package mage.game.permanent.token;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Random;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.ObjectColor;
|
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -39,18 +39,8 @@ import mage.constants.CardType;
|
||||||
public class BeastToken extends Token {
|
public class BeastToken extends Token {
|
||||||
|
|
||||||
public BeastToken() {
|
public BeastToken() {
|
||||||
this("LRW");
|
|
||||||
}
|
|
||||||
public BeastToken(String setCode) {
|
|
||||||
this(setCode, Integer.MIN_VALUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeastToken(String setCode, int tokenType) {
|
|
||||||
super("Beast", "3/3 green Beast creature token");
|
super("Beast", "3/3 green Beast creature token");
|
||||||
setOriginalExpansionSetCode(setCode);
|
availableImageSetCodes.addAll(Arrays.asList("C14", "LRW", "M15", "M14", "DDL", "M13", "M12"));
|
||||||
if (tokenType != Integer.MIN_VALUE) {
|
|
||||||
setTokenType(tokenType);
|
|
||||||
}
|
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setGreen(true);
|
color.setGreen(true);
|
||||||
subtype.add("Beast");
|
subtype.add("Beast");
|
||||||
|
|
@ -59,4 +49,14 @@ public class BeastToken extends Token {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setExpansionSetCodeForImage(String code) {
|
||||||
|
super.setExpansionSetCodeForImage(code);
|
||||||
|
if (getOriginalExpansionSetCode().equals("C14")) {
|
||||||
|
this.setTokenType(new Random().nextInt(2) + 1);
|
||||||
|
}
|
||||||
|
if (getOriginalExpansionSetCode().equals("M15")) {
|
||||||
|
this.setTokenType(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@
|
||||||
* authors and should not be interpreted as representing official policies, either expressed
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
* or implied, of BetaSteward_at_googlemail.com.
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package mage.game.permanent.token;
|
package mage.game.permanent.token;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
|
@ -39,6 +39,7 @@ public class ElfToken extends Token {
|
||||||
|
|
||||||
public ElfToken() {
|
public ElfToken() {
|
||||||
super("Elf Warrior", "1/1 green Elf Warrior creature token");
|
super("Elf Warrior", "1/1 green Elf Warrior creature token");
|
||||||
|
availableImageSetCodes.addAll(Arrays.asList("C14", "SHM", "EVG", "LRW", "ORI"));
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color.setGreen(true);
|
color.setGreen(true);
|
||||||
subtype.add("Elf");
|
subtype.add("Elf");
|
||||||
|
|
@ -47,4 +48,11 @@ public class ElfToken extends Token {
|
||||||
toughness = new MageInt(1);
|
toughness = new MageInt(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setExpansionSetCodeForImage(String code) {
|
||||||
|
super.setExpansionSetCodeForImage(code);
|
||||||
|
if (getOriginalExpansionSetCode().equals("SHM")) {
|
||||||
|
this.setTokenType(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue