Refactor: Changed strange nested ManaCostImpl for Keldon Necropolis

This commit is contained in:
Alex Vasile 2022-06-06 08:48:11 -04:00
parent 45a790790e
commit d09ec3d67c

View file

@ -31,7 +31,7 @@ public final class KeldonNecropolis extends CardImpl {
// {tap}: Add {C}.
this.addAbility(new ColorlessManaAbility());
// {4}{R}, {T}, Sacrifice a creature: Keldon Necropolis deals 2 damage to any target.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>(new ManaCostsImpl<>("{4}{R}")));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(2), new ManaCostsImpl<>("{4}{R}"));
ability.addCost(new TapSourceCost());
ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(FILTER_CONTROLLED_CREATURE_SHORT_TEXT)));
ability.addTarget(new TargetAnyTarget());