fixed ninjutsu ability being usable after blockers have been removed

This commit is contained in:
Evan Kranzler 2018-05-17 15:41:11 -04:00
parent 06b3e70d4e
commit d36d87eb15

View file

@ -35,8 +35,7 @@ import mage.game.permanent.Permanent;
import mage.game.turn.Step;
/**
* Checks if an attacking creature is unblocked after the
* declare blockers step.
* Checks if an attacking creature is unblocked after the declare blockers step.
*
* @author LevelX2
*/
@ -52,7 +51,7 @@ public class UnblockedPredicate implements Predicate<Permanent> {
|| game.getPhase().getStep().getType() == PhaseStep.END_COMBAT) {
CombatGroup combatGroup = game.getCombat().findGroup(input.getId());
if (combatGroup != null) {
return combatGroup.getBlockers().isEmpty();
return !combatGroup.getBlocked();
}
}
}