Fixes abilities that may target either opponents or planeswalkers to properly check if a player is an opponent. #5252

This commit is contained in:
Kevin Shin 2018-08-22 04:46:32 -05:00
parent 09f5af154e
commit 268b1748cc

View file

@ -99,7 +99,8 @@ public class TargetPermanentOrPlayer extends TargetImpl {
}
if (player != null) {
if (!isNotTarget()) {
if (!player.canBeTargetedBy(targetSource, source.getControllerId(), game)) {
if (!player.canBeTargetedBy(targetSource, source.getControllerId(), game)
|| !filter.match(player, source.getSourceId(), source.getControllerId(), game)) {
return false;
}
}