mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Fixes abilities that may target either opponents or planeswalkers to properly check if a player is an opponent. #5252
This commit is contained in:
parent
09f5af154e
commit
268b1748cc
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue