[FIX] Fixes issue 289.

This commit is contained in:
maurer.it 2011-10-19 18:51:31 -04:00
parent 3c8e5d4ea2
commit 64adbf4b21

View file

@ -195,7 +195,12 @@ public class TargetDefender extends TargetImpl<TargetDefender> {
} }
Permanent permanent = game.getPermanent(id); Permanent permanent = game.getPermanent(id);
if (permanent != null) { 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; return false;
} }