[fixed]AI doesn't get that a creature can gain first strike.
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
[fixed]AI doesn't get that a creature can gain first strike.
by 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 ?
-
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 233 times
Last edited by Aswan jaguar on 28 Mar 2021, 18:06, edited 3 times in total.
Reason: fixed
Reason: fixed
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: AI doesn't get that a creature can gain first strike.
by 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
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;
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: [confi]AI doesn't get that a creature can gain first str
by Aswan jaguar » 28 Mar 2021, 09:25
Korath I have run some tests and noticed an issue I don't know if you are aware of it:
Let's say I have War-Spike Changeling and AI has also one or another creature with this ability and we both have mana to activate them.
If it is AI's turn and so AI attacks and has priority and I block AI will activate immediately to gain first strike.
If it is human's turn and AI blocks then human has the opportunity to activate first if I do then AI will never activate the ability in response. If I pass priority then AI will always activate the ability.
Let's say I have War-Spike Changeling and AI has also one or another creature with this ability and we both have mana to activate them.
If it is AI's turn and so AI attacks and has priority and I block AI will activate immediately to gain first strike.
If it is human's turn and AI blocks then human has the opportunity to activate first if I do then AI will never activate the ability in response. If I pass priority then AI will always activate the ability.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
Re: [confi]AI doesn't get that a creature can gain first str
by Aswan jaguar » 28 Mar 2021, 18:06
Fixed original bug for all these cards and all that do it for themselves in commit 613d003 ("Add EVENT_CHECK_ABILITIES for activate own first strike", 2021-03-28)
Except Stillmoon Cavalier which needs more work as it has 3 activated abilities.
Except Stillmoon Cavalier which needs more work as it has 3 activated abilities.
---
Trying to squash some bugs and playtesting.
Trying to squash some bugs and playtesting.
-
Aswan jaguar - Super Tester Elite
- Posts: 8129
- Joined: 13 May 2010, 12:17
- Has thanked: 748 times
- Been thanked: 477 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 38 guests