mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Fixed a bug that the created Ooze Tokens had always P/T of 0/0 when the token was copied later by any effects.
This commit is contained in:
parent
d8d3643733
commit
b731cb4e84
3 changed files with 7 additions and 6 deletions
|
|
@ -97,8 +97,8 @@ class MimingSlimeEffect extends OneShotEffect<MimingSlimeEffect> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OozeToken oozeToken = new OozeToken();
|
OozeToken oozeToken = new OozeToken();
|
||||||
oozeToken.getPower().setValue(amount);
|
oozeToken.getPower().initValue(amount);
|
||||||
oozeToken.getToughness().setValue(amount);
|
oozeToken.getToughness().initValue(amount);
|
||||||
oozeToken.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
oozeToken.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -111,6 +111,7 @@ class OozeToken extends Token {
|
||||||
super("Ooze", "X/X green Ooze creature token");
|
super("Ooze", "X/X green Ooze creature token");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
subtype.add("Ooze");
|
subtype.add("Ooze");
|
||||||
|
color.setGreen(true);
|
||||||
power = new MageInt(0);
|
power = new MageInt(0);
|
||||||
toughness = new MageInt(0);
|
toughness = new MageInt(0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,8 @@ class MysticGenesisEffect extends OneShotEffect<MysticGenesisEffect> {
|
||||||
int cmc = stackObject.getManaCost().convertedManaCost();
|
int cmc = stackObject.getManaCost().convertedManaCost();
|
||||||
if ( cmc > 0 ) {
|
if ( cmc > 0 ) {
|
||||||
MysticGenesisOozeToken oozeToken = new MysticGenesisOozeToken();
|
MysticGenesisOozeToken oozeToken = new MysticGenesisOozeToken();
|
||||||
oozeToken.getPower().setValue(cmc);
|
oozeToken.getPower().initValue(cmc);
|
||||||
oozeToken.getToughness().setValue(cmc);
|
oozeToken.getToughness().initValue(cmc);
|
||||||
oozeToken.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
oozeToken.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ class OozeFluxCreateTokenEffect extends OneShotEffect<OozeFluxCreateTokenEffect>
|
||||||
}
|
}
|
||||||
Token tokenCopy = token.copy();
|
Token tokenCopy = token.copy();
|
||||||
tokenCopy.getAbilities().newId();
|
tokenCopy.getAbilities().newId();
|
||||||
tokenCopy.getPower().setValue(xValue);
|
tokenCopy.getPower().initValue(xValue);
|
||||||
tokenCopy.getToughness().setValue(xValue);
|
tokenCopy.getToughness().initValue(xValue);
|
||||||
tokenCopy.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
tokenCopy.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue