It is currently 16 Feb 2019, 13:42
   
Text Size

[confi]AI doesn't get that a creature can gain first strike.

Report wrong Card behavior to get it fixed.
PLEASE ADD SAVEGAMES TO YOUR TOPIC !

Moderators: BAgate, drool66, stassy, Aswan jaguar, gmzombie, CCGHQ Admins

[confi]AI doesn't get that a creature can gain first strike.

Postby Aswan jaguar » 09 Sep 2016, 17:42

Describe the Bug:
AI doesn't get that Kessig Wolf,War-Spike Changeling,Order of the Ebon Hand,Emerald Dragonfly can gain first strike that is obvious when it decides to attack and defend,too.

Which card did behave improperly ?
AI-Kessig Wolf or AI-gain first in general

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Manalink 2016/08/27: Eldritch Moon v2, duel

What exactly should be the correct behavior/interaction ?
AI gets that Kessig Wolf and others like it can gain first strike when there is mana to activate the ability.

Are any other cards possibly affected by this bug ?
-
Attachments
ai doesn't get kessig wolf can gain first strike.rar
(3.2 KiB) Downloaded 21 times
Last edited by BAgate on 09 Sep 2016, 21:27, edited 2 times in total.
Reason: confirmed by Korath
---
Just playtesting.
User avatar
Aswan jaguar
Super Tester
 
Posts: 5953
Joined: 13 May 2010, 12:17
Has thanked: 526 times
Been thanked: 274 times

Re: AI doesn't get that a creature can gain first strike.

Postby Korath » 09 Sep 2016, 19:22

The proper tool for this is EVENT_CHECK_ABILITIES; see comment next to it in defs.h (but be aware of Shandalar bug #826 - using this for evasion abilities is wonky).

General form is
Code: Select all
if (event == EVENT_CHECK_ABILITIES && affect_me(player, card) && generic_activated_ability(player, card, EVENT_CAN_ACTIVATE, /*costs*/))
  check_abilities_keywords |= KEYWORD_FIRST_STRIKE;
Needs two updates to setup_ai_combat_abilities() for the AI to recognize its own creatures can activate, but it's enough as-is for it to recognize that the human's can.
User avatar
Korath
DEVELOPER
 
Posts: 3364
Joined: 02 Jun 2013, 05:57
Has thanked: 481 times
Been thanked: 924 times


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 3 guests

Login Form