mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[FIX] Fixes issue 289.
This commit is contained in:
parent
3c8e5d4ea2
commit
64adbf4b21
1 changed files with 6 additions and 1 deletions
|
@ -195,7 +195,12 @@ public class TargetDefender extends TargetImpl<TargetDefender> {
|
|||
}
|
||||
Permanent permanent = game.getPermanent(id);
|
||||
if (permanent != null) {
|
||||
return permanent.canBeTargetedBy(targetSource, source.getControllerId(), game) && filter.match(permanent);
|
||||
//Could be targeting due to combat decision to attack a player or planeswalker.
|
||||
UUID controllerId = null;
|
||||
if ( source != null ) {
|
||||
controllerId = source.getControllerId();
|
||||
}
|
||||
return permanent.canBeTargetedBy(targetSource, controllerId, game) && filter.match(permanent);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue