mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge pull request #5255 from kevinwshin/FixTargetOpponentOrPlaneswalker5252
Fixes abilities that may target either opponents or planeswalkers
This commit is contained in:
commit
924504d183
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue