mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
AI: add flag to check for Blitz restriction
This commit is contained in:
@@ -889,6 +889,10 @@ public class AiController {
|
||||
spellHost.setLastKnownZone(game.getStackZone()); // need to add to stack to make check Restrictions respect stack cmc
|
||||
spellHost.setCastFrom(card.getZone());
|
||||
}
|
||||
// TODO maybe other location for this?
|
||||
if (!sa.isLegalAfterStack()) {
|
||||
return AiPlayDecision.AnotherTime;
|
||||
}
|
||||
if (!sa.checkRestrictions(spellHost, player)) {
|
||||
return AiPlayDecision.AnotherTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user