Page 2 of 2

Re: AI Work/Combat Prediction

PostPosted: 28 Feb 2011, 16:55
by Sloth
I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.

Re: AI Work/Combat Prediction

PostPosted: 28 Feb 2011, 18:14
by friarsol
Combat prediction is looking better and better. Keep up the good work.

I just noticed a weird attack today. AI has a 2/2 and I was at 2 life. I have a 2/1 First Striker. But AI attacks anyway.

Code: Select all
3 = ai aggression
Normal attack
Not sure if he thought he was going to trade, or what the plan was. But it didn't work.

Edit: Next turn he attacks with a 1/1 in the same situation. They must not be considering the first strike in this case.

Code: Select all
2 = ai aggression
Normal attack
0
Adding 2 damage to Goblin Matron

Re: AI Work/Combat Prediction

PostPosted: 28 Feb 2011, 23:24
by ZzzzSleep
With these changes, is the AI taking vigilance into account? In the Feb 19 release, the AI was low on life, but declined to attack with a vigilant flying creature that I was unable to block.

Re: AI Work/Combat Prediction

PostPosted: 01 Mar 2011, 20:25
by Sloth
friarsol wrote:Combat prediction is looking better and better. Keep up the good work.

I just noticed a weird attack today. AI has a 2/2 and I was at 2 life. I have a 2/1 First Striker. But AI attacks anyway.

Code: Select all
3 = ai aggression
Normal attack
Not sure if he thought he was going to trade, or what the plan was. But it didn't work.

Edit: Next turn he attacks with a 1/1 in the same situation. They must not be considering the first strike in this case.

Code: Select all
2 = ai aggression
Normal attack
0
Adding 2 damage to Goblin Matron
I was unable to reproduce this. I used AI Savannah Lions against my Coiled Tinviper and even at low life (me), the AI didn't attack into them. How many creatures did the AI have?

Re: AI Work/Combat Prediction

PostPosted: 02 Mar 2011, 03:09
by friarsol
Sloth wrote:I was unable to reproduce this. I used AI Savannah Lions against my Coiled Tinviper and even at low life (me), the AI didn't attack into them. How many creatures did the AI have?
That was the only one. AI was at a bunch of life (like 16) and I had a Vampire Hexmage and something that was tapped that I was attacking with (don't remember what it was).

Re: AI Work/Combat Prediction

PostPosted: 02 Mar 2011, 05:48
by jeffwadsworth
Sloth wrote:I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.
Haha. I was wondering what the heck was going on while testing Mesmeric Orb...

Re: AI Work/Combat Prediction

PostPosted: 02 Mar 2011, 16:42
by Masher8
Sloth wrote:I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.
No problem. Real life is preventing me doing anything on this at the moment.