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,13 +119,9 @@ 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();
|
|
||||||
//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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (combat != null) {
|
if (combat != null) {
|
||||||
//creature is blocking and would be destroyed itself
|
//creature is blocking and would be destroyed itself
|
||||||
|
|||||||
Reference in New Issue
Block a user