mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- AI will no longer always pass priority after activating a static ability.
This commit is contained in:
@@ -86,17 +86,23 @@ public class ComputerUtil {
|
||||
|
||||
if (sa instanceof AbilityStatic) {
|
||||
final Cost cost = sa.getPayCosts();
|
||||
if (cost == null && ComputerUtilMana.payManaCost(ai, sa)) {
|
||||
if (cost == null) {
|
||||
if (ComputerUtilMana.payManaCost(ai, sa)) {
|
||||
sa.resolve();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
final CostPayment pay = new CostPayment(cost, sa);
|
||||
if (pay.payComputerCosts(ai, game)) {
|
||||
sa.resolve();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Why?
|
||||
game.getPhaseHandler().setPriority(ai);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
game.getStack().freezeStack();
|
||||
|
||||
Reference in New Issue
Block a user