mirror of
https://github.com/correl/mage.git
synced 2025-01-14 03:00:10 +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) {
|
if (controller != null) {
|
||||||
Card card = game.getCard(targetPointer.getFirst(game, source));
|
Card card = game.getCard(targetPointer.getFirst(game, source));
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
|
int xValue = card.getToughness().getValue();
|
||||||
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD);
|
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.GRAVEYARD);
|
||||||
ContinuousEffect effect = new BoostTargetEffect(-4,-4, Duration.EndOfTurn);
|
if (xValue != 0) {
|
||||||
effect.setTargetPointer(new FixedTarget(source.getTargets().get(1).getFirstTarget()));
|
ContinuousEffect effect = new BoostTargetEffect(xValue,xValue, Duration.EndOfTurn);
|
||||||
game.addEffect(effect, source);
|
effect.setTargetPointer(new FixedTarget(source.getTargets().get(1).getFirstTarget()));
|
||||||
|
game.addEffect(effect, source);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue