mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Removed obsolete code from ProtectAi
This commit is contained in:
@@ -119,11 +119,7 @@ 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;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user