mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* Corpseweft - Fixed that the created token was not black (fixes #1075).
This commit is contained in:
parent
1c157a20ae
commit
b206beb9dc
1 changed files with 3 additions and 2 deletions
|
@ -94,9 +94,9 @@ class CorpseweftEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
int amount = 0;
|
||||
for (Cost cost: source.getCosts()) {
|
||||
for (Cost cost : source.getCosts()) {
|
||||
if (cost instanceof ExileFromGraveCost) {
|
||||
amount = ((ExileFromGraveCost) cost).getExiledCards().size() *2;
|
||||
amount = ((ExileFromGraveCost) cost).getExiledCards().size() * 2;
|
||||
new CreateTokenEffect(new CorpseweftZombieToken(amount, amount), 1, true, false).apply(game, source);
|
||||
}
|
||||
}
|
||||
|
@ -115,6 +115,7 @@ class CorpseweftZombieToken extends Token {
|
|||
cardType.add(CardType.CREATURE);
|
||||
subtype.add("Zombie");
|
||||
subtype.add("Horror");
|
||||
color.setBlack(true);
|
||||
this.power = new MageInt(power);
|
||||
this.toughness = new MageInt(toughness);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue