mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Somewhat more appropriate location for the updated trample AI code.
This commit is contained in:
@@ -1257,6 +1257,10 @@ public class AiAttackController {
|
|||||||
if (LOG_AI_ATTACKS)
|
if (LOG_AI_ATTACKS)
|
||||||
System.out.println(attacker.getName() + " = attacking because they can't block, expecting to kill or damage player");
|
System.out.println(attacker.getName() + " = attacking because they can't block, expecting to kill or damage player");
|
||||||
return true;
|
return true;
|
||||||
|
} else if (!canBeKilled && !dangerousBlockersPresent && canTrampleOverDefenders) {
|
||||||
|
if (LOG_AI_ATTACKS)
|
||||||
|
System.out.println(attacker.getName() + " = expecting to survive and get some Trample damage through");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (numberOfPossibleBlockers > 2
|
if (numberOfPossibleBlockers > 2
|
||||||
@@ -1298,9 +1302,7 @@ public class AiAttackController {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: // attack expecting to attract a group block or destroying a single blocker and surviving
|
case 2: // attack expecting to attract a group block or destroying a single blocker and surviving
|
||||||
if (!canBeBlocked
|
if (!canBeBlocked || ((canKillAll || hasAttackEffect || hasCombatEffect) && !canBeKilledByOne &&
|
||||||
|| (!canBeKilled && !dangerousBlockersPresent && canTrampleOverDefenders)
|
|
||||||
|| ((canKillAll || hasAttackEffect || hasCombatEffect) && !canBeKilledByOne &&
|
|
||||||
((dangerousBlockersPresent && canKillAllDangerous) || !canBeKilled))) {
|
((dangerousBlockersPresent && canKillAllDangerous) || !canBeKilled))) {
|
||||||
if (LOG_AI_ATTACKS)
|
if (LOG_AI_ATTACKS)
|
||||||
System.out.println(attacker.getName() + " = attacking expecting to survive or attract group block");
|
System.out.println(attacker.getName() + " = attacking expecting to survive or attract group block");
|
||||||
|
|||||||
Reference in New Issue
Block a user