Fix GenericChoice to not fizzle when the choosing player can't be targeted, and isn't.

This commit is contained in:
elcnesh
2014-08-12 20:20:40 +00:00
parent 0f5697d1fa
commit 8876a27af1

View File

@@ -41,7 +41,7 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
final TargetRestrictions tgt = sa.getTargetRestrictions();
for (final Player p : tgtPlayers) {
if (tgt != null && !p.canBeTargetedBy(sa)) {
if (tgt != null && sa.getTargets().isTargeting(p) && !p.canBeTargetedBy(sa)) {
continue;
}