mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fix AI not playing mandatory spell
This commit is contained in:
@@ -1419,14 +1419,15 @@ public class AiController {
|
||||
} else {
|
||||
chance = SpellApiToAi.Converter.get(spell.getApi()).doTriggerAI(player, spell, mandatory);
|
||||
}
|
||||
if (!chance)
|
||||
if (!chance) {
|
||||
return AiPlayDecision.TargetingFailed;
|
||||
}
|
||||
|
||||
if (spell instanceof SpellPermanent) {
|
||||
if (mandatory) {
|
||||
return AiPlayDecision.WillPlay;
|
||||
}
|
||||
|
||||
if (spell instanceof SpellPermanent) {
|
||||
if (!checkETBEffects(card, spell, null)) {
|
||||
return AiPlayDecision.BadEtbEffects;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user