mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixes #4317
This commit is contained in:
parent
34c32a7535
commit
54c585afd8
1 changed files with 8 additions and 1 deletions
|
@ -27,11 +27,12 @@
|
|||
*/
|
||||
package mage.filter.predicate.permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author North
|
||||
|
@ -46,6 +47,12 @@ public class ControllerIdPredicate implements Predicate<Permanent> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
if(controllerId == null){
|
||||
return false;
|
||||
}
|
||||
if(input.getControllerId() == null){
|
||||
return false;
|
||||
}
|
||||
return controllerId.equals(input.getControllerId());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue