- AiAttackController: don't attack into a guaranteed block unless the attacker has some kind of an attack/combat effect.

This commit is contained in:
Agetian
2017-09-06 16:21:49 +00:00
parent e2f9139aa9
commit 7a767327c0

View File

@@ -1125,6 +1125,12 @@ public class AiAttackController {
// and combat will have negative effects // and combat will have negative effects
} }
} }
// We can't kill a single blocker, there is no reason to attack unless we can cripple a
// blocker or gain life from attacking or we have some kind of another attack/combat effect
if (canKillAllDangerous && !hasAttackEffect && !hasCombatEffect) {
canKillAllDangerous = false;
}
} }
} }
} }