mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Make Turn // Burn use CreatureToken instead of custom private token
This commit is contained in:
parent
8dd20a3e2e
commit
d4774ef125
1 changed files with 7 additions and 25 deletions
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect;
|
||||
|
|
@ -11,7 +10,7 @@ import mage.constants.CardType;
|
|||
import mage.constants.Duration;
|
||||
import mage.constants.SpellAbilityType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.TokenImpl;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
|
|
@ -28,8 +27,12 @@ public final class TurnBurn extends SplitCard {
|
|||
|
||||
// Turn
|
||||
// Until end of turn, target creature loses all abilities and becomes a red Weird with base power and toughness 0/1.
|
||||
Effect effect = new BecomesCreatureTargetEffect(new WeirdToken(), true, false, Duration.EndOfTurn)
|
||||
.withDurationRuleAtStart(true);
|
||||
Effect effect = new BecomesCreatureTargetEffect(
|
||||
new CreatureToken(0, 1, "red Weird with base power and toughness 0/1", SubType.WEIRD).withColor("R"),
|
||||
true,
|
||||
false,
|
||||
Duration.EndOfTurn
|
||||
).withDurationRuleAtStart(true);
|
||||
getLeftHalfCard().getSpellAbility().addEffect(effect);
|
||||
getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent().withChooseHint("becomes a Weird"));
|
||||
|
||||
|
|
@ -48,25 +51,4 @@ public final class TurnBurn extends SplitCard {
|
|||
public TurnBurn copy() {
|
||||
return new TurnBurn(this);
|
||||
}
|
||||
|
||||
private static class WeirdToken extends TokenImpl {
|
||||
|
||||
private WeirdToken() {
|
||||
super("Weird", "red Weird with base power and toughness 0/1");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.WEIRD);
|
||||
power = new MageInt(0);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
private WeirdToken(final WeirdToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public WeirdToken copy() {
|
||||
return new WeirdToken(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue