mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
* Four Renewal - Fixed that the X value was set fix to 4 instead of toughness of the returned creature (fixes #832).
This commit is contained in:
parent
8eeab28581
commit
2f2ce63ca2
1 changed files with 6 additions and 3 deletions
|
@ -94,10 +94,13 @@ class FoulRenewalEffect extends OneShotEffect {
|
|||
if (controller != null) {
|
||||
Card card = game.getCard(targetPointer.getFirst(game, source));
|
||||
if (card != null) {
|
||||
int xValue = card.getToughness().getValue();
|
||||
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD);
|
||||
ContinuousEffect effect = new BoostTargetEffect(-4,-4, Duration.EndOfTurn);
|
||||
effect.setTargetPointer(new FixedTarget(source.getTargets().get(1).getFirstTarget()));
|
||||
game.addEffect(effect, source);
|
||||
if (xValue != 0) {
|
||||
ContinuousEffect effect = new BoostTargetEffect(xValue,xValue, Duration.EndOfTurn);
|
||||
effect.setTargetPointer(new FixedTarget(source.getTargets().get(1).getFirstTarget()));
|
||||
game.addEffect(effect, source);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue