mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed the color of Mercy Killing's tokens.
This commit is contained in:
parent
f08ec6f2aa
commit
00e79f2fdd
1 changed files with 17 additions and 3 deletions
|
@ -34,14 +34,14 @@ import mage.constants.Rarity;
|
|||
import mage.abilities.effects.common.SacrificeTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.game.permanent.token.ElfToken;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.constants.Outcome;
|
||||
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.MageInt;
|
||||
|
||||
/**
|
||||
* @author duncancmt
|
||||
|
@ -91,10 +91,24 @@ class MercyKillingTokenEffect extends OneShotEffect {
|
|||
Permanent permanent = (Permanent) game.getLastKnownInformation(targetPointer.getFirst(game, source), Zone.BATTLEFIELD);
|
||||
if (permanent != null) {
|
||||
int power = permanent.getPower().getValue();
|
||||
ElfToken token = new ElfToken();
|
||||
MercyKillingToken token = new MercyKillingToken();
|
||||
token.putOntoBattlefield(power, game, source.getSourceId(), permanent.getControllerId());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MercyKillingToken extends Token {
|
||||
|
||||
public MercyKillingToken() {
|
||||
super("Elf Warrior", "1/1 green and white Elf Warrior creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
color.setWhite(true);
|
||||
subtype.add("Elf");
|
||||
subtype.add("Warrior");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue