mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Remove useless parameter of ExertSourceCost.
This commit is contained in:
parent
235443c04d
commit
130a123052
2 changed files with 3 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue