forked from External/mage
refactored ControllerPredicate
This commit is contained in:
parent
c14a079cc5
commit
9c3b923b3f
783 changed files with 829 additions and 1689 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue