* Hunter's Prowess - Fixed that damage info was not set for effect leading to NPE.

This commit is contained in:
LevelX2 2014-01-26 16:42:04 +01:00
parent d07c7b490b
commit 4255bd28e5

View file

@ -59,7 +59,7 @@ public class HuntersProwess extends CardImpl<HuntersProwess> {
Effect effect = new BoostTargetEffect(3,3, Duration.EndOfTurn); Effect effect = new BoostTargetEffect(3,3, Duration.EndOfTurn);
effect.setText("Until end of turn, target creature gets +3/+3"); effect.setText("Until end of turn, target creature gets +3/+3");
this.getSpellAbility().addEffect(effect); this.getSpellAbility().addEffect(effect);
Ability grantedAbility = new DealsCombatDamageToAPlayerTriggeredAbility(new HuntersProwessDrawEffect(), false); Ability grantedAbility = new DealsCombatDamageToAPlayerTriggeredAbility(new HuntersProwessDrawEffect(), false, true);
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(grantedAbility, Duration.EndOfTurn, this.getSpellAbility().addEffect(new GainAbilityTargetEffect(grantedAbility, Duration.EndOfTurn,
"and gains trample and \"Whenever this creature deals combat damage to a player, draw that many cards.\"")); "and gains trample and \"Whenever this creature deals combat damage to a player, draw that many cards.\""));
this.getSpellAbility().addTarget(new TargetCreaturePermanent(true)); this.getSpellAbility().addTarget(new TargetCreaturePermanent(true));