Merge pull request #5255 from kevinwshin/FixTargetOpponentOrPlaneswalker5252

Fixes abilities that may target either opponents or planeswalkers
This commit is contained in:
Oleg Agafonov 2018-08-25 04:58:03 +04:00 committed by GitHub
commit 924504d183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,8 @@ public class TargetPermanentOrPlayer extends TargetImpl {
} }
if (player != null) { if (player != null) {
if (!isNotTarget()) { 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; return false;
} }
} }