[NCC] Implement The Beamtown Bullies (#9378)

This commit is contained in:
arketec 2022-08-17 18:01:49 -07:00 committed by GitHub
parent 6cfefeea95
commit 56d5ad3dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1,31 @@
package mage.target.common;
import mage.filter.FilterOpponent;
import mage.filter.predicate.other.PlayerIdPredicate;
import mage.game.Game;
import mage.target.TargetPlayer;
/**
* @author Arketec
*/
public class TargetOpponentWhoseTurnItIs extends TargetPlayer {
public TargetOpponentWhoseTurnItIs(Game game) {
this(game,false);
}
public TargetOpponentWhoseTurnItIs(Game game, boolean notTarget) {
super(1, 1, notTarget, new FilterOpponent());
super.filter.add(new PlayerIdPredicate(game.getActivePlayerId()));
}
private TargetOpponentWhoseTurnItIs(final TargetOpponentWhoseTurnItIs target) {
super(target);
}
@Override
public TargetOpponentWhoseTurnItIs copy() {
return new TargetOpponentWhoseTurnItIs(this);
}
}