Remove useless parameter of ExertSourceCost.

This commit is contained in:
emerald000 2017-06-27 23:07:24 -04:00
parent 235443c04d
commit 130a123052
2 changed files with 3 additions and 7 deletions

View file

@ -91,7 +91,7 @@ public class AngelOfCondemnation extends CardImpl {
effect.setText("Exile another target creature until {this} leaves the battlefield"); effect.setText("Exile another target creature until {this} leaves the battlefield");
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{W}")); ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{W}"));
ability.addCost(new TapSourceCost()); ability.addCost(new TapSourceCost());
ability.addCost(new ExertSourceCost(ability)); ability.addCost(new ExertSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter)); ability.addTarget(new TargetCreaturePermanent(filter));
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility())); ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
this.addAbility(ability); this.addAbility(ability);

View file

@ -46,16 +46,12 @@ import mage.target.targetpointer.FixedTarget;
*/ */
public class ExertSourceCost extends CostImpl { public class ExertSourceCost extends CostImpl {
private final Ability source; public ExertSourceCost() {
public ExertSourceCost(Ability source) {
this.source = source;
this.text = "Exert {this}"; this.text = "Exert {this}";
} }
public ExertSourceCost(ExertSourceCost cost) { public ExertSourceCost(ExertSourceCost cost) {
super(cost); super(cost);
this.source = cost.source;
} }
@Override @Override
@ -71,7 +67,7 @@ public class ExertSourceCost extends CostImpl {
game.fireEvent(GameEvent.getEvent(EventType.BECOMES_EXERTED, permanent.getId(), permanent.getId(), permanent.getControllerId())); game.fireEvent(GameEvent.getEvent(EventType.BECOMES_EXERTED, permanent.getId(), permanent.getId(), permanent.getControllerId()));
ContinuousEffect effect = new DontUntapInControllersNextUntapStepTargetEffect("", permanent.getControllerId()); ContinuousEffect effect = new DontUntapInControllersNextUntapStepTargetEffect("", permanent.getControllerId());
effect.setTargetPointer(new FixedTarget(permanent, game)); effect.setTargetPointer(new FixedTarget(permanent, game));
game.addEffect(effect, source); game.addEffect(effect, ability);
paid = true; paid = true;
} }
return paid; return paid;