fixed Curtain of Light targeting, updated how being unblocked is checked

This commit is contained in:
Evan Kranzler 2017-10-05 13:35:42 -04:00
parent 3b0b923b7c
commit 2733d736d5
5 changed files with 19 additions and 22 deletions

View file

@ -48,6 +48,7 @@ import mage.game.Game;
import mage.game.GameState;
import mage.game.ZoneChangeInfo;
import mage.game.ZonesHandler;
import mage.game.combat.CombatGroup;
import mage.game.command.CommandObject;
import mage.game.events.*;
import mage.game.events.GameEvent.EventType;
@ -509,6 +510,16 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
return attacking;
}
@Override
public boolean isBlocked(Game game) {
for (CombatGroup combatGroup : game.getCombat().getGroups()) {
if (combatGroup.getBlocked() && combatGroup.getAttackers().contains(this.getId())) {
return true;
}
}
return false;
}
@Override
public int getBlocking() {
return blocking;