Fixed bug #223 Predator's Rapport only gains life equal to creature's power.

This commit is contained in:
LevelX2 2013-05-22 13:06:21 +02:00
parent ea1fce8cd5
commit ac5c91763b

View file

@ -53,7 +53,7 @@ public class PredatorsRapport extends CardImpl<PredatorsRapport> {
this.color.setGreen(true); this.color.setGreen(true);
// Choose target creature you control. You gain life equal to that creature's power plus its toughness. // Choose target creature you control. You gain life equal to that creature's power plus its toughness.
Effect effect = new GainLifeEffect(new TargetPermanentPowerToughnessCount()); Effect effect = new GainLifeEffect(new TargetPermanentPowerPlusToughnessCount());
effect.setText("Choose target creature you control. You gain life equal to that creature's power plus its toughness"); effect.setText("Choose target creature you control. You gain life equal to that creature's power plus its toughness");
this.getSpellAbility().addEffect(effect); this.getSpellAbility().addEffect(effect);
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
@ -69,7 +69,7 @@ public class PredatorsRapport extends CardImpl<PredatorsRapport> {
} }
} }
class TargetPermanentPowerToughnessCount implements DynamicValue { class TargetPermanentPowerPlusToughnessCount implements DynamicValue {
@Override @Override
public int calculate(Game game, Ability sourceAbility) { public int calculate(Game game, Ability sourceAbility) {
@ -82,7 +82,7 @@ class TargetPermanentPowerToughnessCount implements DynamicValue {
@Override @Override
public DynamicValue copy() { public DynamicValue copy() {
return new TargetPermanentPowerCount(); return new TargetPermanentPowerPlusToughnessCount();
} }
@Override @Override