Co-authored-by: TRT <>
This commit is contained in:
tool4ever
2024-04-12 17:48:10 +02:00
committed by GitHub
parent 9975d68f04
commit 839d040c8b
7 changed files with 12 additions and 23 deletions

View File

@@ -59,7 +59,7 @@ public class AttachAi extends SpellAbilityAi {
// TODO: improve this so that the AI can use a flash aura buff as a means of killing opposing creatures
// and gaining card advantage
if (source.hasKeyword("MayFlashSac") && !ai.couldCastSorcery(sa)) {
if (source.hasKeyword("MayFlashSac") && !ai.canCastSorcery()) {
return false;
}

View File

@@ -29,7 +29,7 @@ public class PermanentAi extends SpellAbilityAi {
protected boolean checkPhaseRestrictions(final Player ai, final SpellAbility sa, final PhaseHandler ph) {
final Card card = sa.getHostCard();
if (card.hasKeyword("MayFlashSac") && !ai.couldCastSorcery(sa)) {
if (card.hasKeyword("MayFlashSac") && !ai.canCastSorcery()) {
// AiPlayDecision.AnotherTime
return false;
}