- Removed obsolete code from ProtectAi

This commit is contained in:
excessum
2014-05-01 05:06:09 +00:00
parent 8bcbc00fc4
commit 01c2b528b1

View File

@@ -119,13 +119,9 @@ public class ProtectAi extends SpellAbilityAi {
if (!game.stack.isEmpty()) {
//counter bad effect on stack
if (ComputerUtil.predictThreatenedObjects(sa.getActivatingPlayer(), sa).contains(c)) {
Card threat = game.getStack().peekAbility().getHostCard();
//check to see if threat has already been countered by resolved protect
if (threat != null && !c.hasProtectionFrom(threat) && ProtectAi.toProtectFrom(threat, sa) != null) {
return true;
}
}
}
if (combat != null) {
//creature is blocking and would be destroyed itself