refactored ControllerPredicate

This commit is contained in:
Evan Kranzler 2020-01-06 20:04:56 -05:00
parent c14a079cc5
commit 9c3b923b3f
783 changed files with 829 additions and 1689 deletions

View file

@ -10,7 +10,6 @@ import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.predicate.permanent.ControllerPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -39,7 +38,7 @@ public class SacrificeOpponentsEffect extends OneShotEffect {
super(Outcome.Sacrifice);
this.amount = amount;
this.filter = filter.copy();
this.filter.add(new ControllerPredicate(TargetController.YOU));
this.filter.add(TargetController.YOU.getControllerPredicate());
setText();
}