* 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:
LevelX2 2015-03-25 08:27:29 +01:00
parent 8eeab28581
commit 2f2ce63ca2

View file

@ -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;
}