mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
Fixed bug #223 Predator's Rapport only gains life equal to creature's power.
This commit is contained in:
parent
ea1fce8cd5
commit
ac5c91763b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue