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");
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl<>("{2}{W}"));
ability.addCost(new TapSourceCost());
ability.addCost(new ExertSourceCost(ability));
ability.addCost(new ExertSourceCost());
ability.addTarget(new TargetCreaturePermanent(filter));
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new OnLeaveReturnExiledToBattlefieldAbility()));
this.addAbility(ability);

View file

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