Fix Nessian Wilds Ravager

This commit is contained in:
Quercitron 2014-01-26 01:43:50 +04:00
parent ceda6b3611
commit c96c0a1e9e
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ public class NessianWildsRavager extends CardImpl<NessianWildsRavager> {
this.addAbility(new TributeAbility(6)); this.addAbility(new TributeAbility(6));
// When Nessian Wilds Ravager enters the battlefield, if tribute wasn't paid, you may have Nessian Wilds Ravager fight another target creature. // When Nessian Wilds Ravager enters the battlefield, if tribute wasn't paid, you may have Nessian Wilds Ravager fight another target creature.
TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect(), true); TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect(), true);
ability.addTarget(new TargetCreaturePermanent(true)); ability.addTarget(new TargetCreaturePermanent(filter, true));
this.addAbility(new ConditionalTriggeredAbility(ability, TributeNotPaidCondition.getInstance(), this.addAbility(new ConditionalTriggeredAbility(ability, TributeNotPaidCondition.getInstance(),
"When {this} enters the battlefield, if its tribute wasn't paid, you may have {this} fight another target creature.")); "When {this} enters the battlefield, if its tribute wasn't paid, you may have {this} fight another target creature."));
} }

View file

@ -54,8 +54,8 @@ public class FightTargetSourceEffect extends OneShotEffect<FightTargetSourceEffe
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Card card = game.getCard(source.getSourceId()); Card card = game.getCard(source.getSourceId());
if (card != null) { if (card != null) {
// only if both targets are legal the effect will be applied // only if target is legal the effect will be applied
if (source.getTargets().get(0).isLegal(source, game) && source.getTargets().get(1).isLegal(source, game)) { if (source.getTargets().get(0).isLegal(source, game)) {
Permanent creature1 = game.getPermanent(source.getTargets().get(0).getFirstTarget()); Permanent creature1 = game.getPermanent(source.getTargets().get(0).getFirstTarget());
Permanent creature2 = game.getPermanent(source.getSourceId()); Permanent creature2 = game.getPermanent(source.getSourceId());
// 20110930 - 701.10 // 20110930 - 701.10