AI anticipating regeneration and damage prevention abilities
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
3 posts
• Page 1 of 1
AI anticipating regeneration and damage prevention abilities
by Sloth » 22 May 2011, 16:33
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?).
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: AI anticipating regeneration and damage prevention abili
by friarsol » 22 May 2011, 17:04
I don't think this exists yet, although it could be extremely useful for AIs considerations all over the place, along with adding some UI improvements for the player (Highlighting certain cards that the human can afford)Sloth wrote: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?).
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: AI anticipating regeneration and damage prevention abili
by Sloth » 22 May 2011, 17:24
So this will be a mid time project.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests