mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Fixed Finale of Eternity that it can target any permanents
This commit is contained in:
parent
58e02315fb
commit
0173e95736
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import mage.constants.Outcome;
|
|||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.ToughnessPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
|
@ -48,7 +49,7 @@ enum FinaleOfEternityAdjuster implements TargetAdjuster {
|
|||
@Override
|
||||
public void adjustTargets(Ability ability, Game game) {
|
||||
int xValue = ability.getManaCostsToPay().getX();
|
||||
FilterPermanent filter = new FilterPermanent("creatures with toughness " + xValue + " or less");
|
||||
FilterPermanent filter = new FilterCreaturePermanent("creatures with toughness " + xValue + " or less");
|
||||
filter.add(new ToughnessPredicate(ComparisonType.FEWER_THAN, xValue + 1));
|
||||
ability.getTargets().clear();
|
||||
ability.addTarget(new TargetPermanent(0, 3, filter, false));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue