mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48: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()) {
|
if (!game.stack.isEmpty()) {
|
||||||
//counter bad effect on stack
|
//counter bad effect on stack
|
||||||
if (ComputerUtil.predictThreatenedObjects(sa.getActivatingPlayer(), sa).contains(c)) {
|
if (ComputerUtil.predictThreatenedObjects(sa.getActivatingPlayer(), sa).contains(c)) {
|
||||||
Card threat = game.getStack().peekAbility().getHostCard();
|
return true;
|
||||||
//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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user