mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Improved lifeInDanger AI function.
This commit is contained in:
@@ -300,7 +300,7 @@ public class ComputerUtilCombat {
|
|||||||
*/
|
*/
|
||||||
public static boolean lifeInDanger(final Player ai, final Combat combat) {
|
public static boolean lifeInDanger(final Player ai, final Combat combat) {
|
||||||
// life in danger only cares about the player's life. Not Planeswalkers' life
|
// life in danger only cares about the player's life. Not Planeswalkers' life
|
||||||
if (ai.cantLose()) {
|
if (ai.cantLose() || combat.getAttackingPlayer() == ai) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user