forked from External/mage
Fixed #206. Power an toughness for tokens with variable value for P/T by time of creating them was not set to power and toughness cardValue, so that copying them resulted always in 0/0 for P/T.
This commit is contained in:
parent
b6be0fe472
commit
1bfd076a5b
4 changed files with 8 additions and 8 deletions
|
|
@ -82,8 +82,8 @@ public class PhyrexianRebirth extends CardImpl<PhyrexianRebirth> {
|
|||
count += permanent.destroy(source.getId(), game, false) ? 1 : 0;
|
||||
}
|
||||
HorrorToken horrorToken = new HorrorToken();
|
||||
horrorToken.getPower().setValue(count);
|
||||
horrorToken.getToughness().setValue(count);
|
||||
horrorToken.getPower().initValue(count);
|
||||
horrorToken.getToughness().initValue(count);
|
||||
horrorToken.putOntoBattlefield(1, game, source.getId(), source.getControllerId());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ class SlimeMoldingEffect extends OneShotEffect<SlimeMoldingEffect> {
|
|||
int count = source.getManaCostsToPay().getX();
|
||||
|
||||
OozeToken oozeToken = new OozeToken();
|
||||
oozeToken.getPower().setValue(count);
|
||||
oozeToken.getToughness().setValue(count);
|
||||
oozeToken.getPower().initValue(count);
|
||||
oozeToken.getToughness().initValue(count);
|
||||
oozeToken.putOntoBattlefield(1, game, source.getId(), source.getControllerId());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ class DevastatingSummonsEffect extends OneShotEffect<DevastatingSummonsEffect> {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
ElementalToken token = new ElementalToken();
|
||||
|
||||
token.getPower().setValue(new GetXValue().calculate(game, source));
|
||||
token.getToughness().setValue(new GetXValue().calculate(game, source));
|
||||
token.getPower().initValue(new GetXValue().calculate(game, source));
|
||||
token.getToughness().initValue(new GetXValue().calculate(game, source));
|
||||
|
||||
token.putOntoBattlefield(2, game, source.getSourceId(), source.getControllerId());
|
||||
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ class GelatinousGenesisEffect extends OneShotEffect<GelatinousGenesisEffect> {
|
|||
int count = source.getManaCostsToPay().getX();
|
||||
|
||||
OozeToken oozeToken = new OozeToken();
|
||||
oozeToken.getPower().setValue(count);
|
||||
oozeToken.getToughness().setValue(count);
|
||||
oozeToken.getPower().initValue(count);
|
||||
oozeToken.getToughness().initValue(count);
|
||||
oozeToken.putOntoBattlefield(count, game, source.getId(), source.getControllerId());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue