mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
added copy methods that I accidentally removed
This commit is contained in:
parent
fe099d252f
commit
dc2d8145fd
5 changed files with 16 additions and 13 deletions
|
|
@ -25,4 +25,9 @@ public class FilterOpponentOrPlaneswalker extends FilterPermanentOrPlayer {
|
|||
public FilterOpponentOrPlaneswalker(final FilterOpponentOrPlaneswalker filter) {
|
||||
super(filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FilterOpponentOrPlaneswalker copy() {
|
||||
return new FilterOpponentOrPlaneswalker(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,4 +25,9 @@ public class FilterPlayerOrPlaneswalker extends FilterPermanentOrPlayer {
|
|||
public FilterPlayerOrPlaneswalker(final FilterPlayerOrPlaneswalker filter) {
|
||||
super(filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FilterPlayerOrPlaneswalker copy() {
|
||||
return new FilterPlayerOrPlaneswalker(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,4 +32,9 @@ public class TargetOpponentOrPlaneswalker extends TargetPermanentOrPlayer {
|
|||
public TargetOpponentOrPlaneswalker(final TargetOpponentOrPlaneswalker target) {
|
||||
super(target);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TargetOpponentOrPlaneswalker copy() {
|
||||
return new TargetOpponentOrPlaneswalker(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,14 +5,6 @@
|
|||
*/
|
||||
package mage.target.common;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.common.FilterPlaneswalkerPermanent;
|
||||
import mage.filter.common.FilterPlayerOrPlaneswalker;
|
||||
|
||||
/**
|
||||
|
|
@ -41,10 +33,6 @@ public class TargetPlayerOrPlaneswalker extends TargetPermanentOrPlayer {
|
|||
super(target);
|
||||
}
|
||||
|
||||
public FilterPlaneswalkerPermanent getPlaneswalkerFilter() {
|
||||
return filter.getPlaneswalkerFilter();
|
||||
}
|
||||
|
||||
@Override
|
||||
public TargetPlayerOrPlaneswalker copy() {
|
||||
return new TargetPlayerOrPlaneswalker(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue