AI anticipating regeneration and damage prevention abilities
I want to build in some code for the combat AI to anticipate regeneration and damage prevention abilities. I will check all cards on the human battlefield for activated regeneration and damage prevention abilities and if they can target the human attacking or blocking creature. So far so good.
Question: Is there a way to check whether the human has the ressources to activate an ability or not? (I know I should check canPay and canPayAdditionalCosts, but what about mana costs?).
Question: Is there a way to check whether the human has the ressources to activate an ability or not? (I know I should check canPay and canPayAdditionalCosts, but what about mana costs?).