It is currently 16 Apr 2024, 10:37
   
Text Size

[confir]AI doesn't get Skeletal Grimace grants regeneration.

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

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

[confir]AI doesn't get Skeletal Grimace grants regeneration.

Postby Aswan jaguar » 09 Sep 2016, 18:32

Describe the Bug:
AI doesn't get Skeletal Grimace grants regeneration to enchanted creature when deciding to attack or block.

Which card did behave improperly ?
Skeletal Grimace

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 Skeletal Grimace grants regeneration to enchanted creature when deciding to attack or block.

Are any other cards possibly affected by this bug ?
-
Attachments
ai doesn't get skeletal grimace grants regen.rar
(2.25 KiB) Downloaded 198 times
Last edited by BAgate on 09 Sep 2016, 21:26, edited 1 time in total.
Reason: confirmed by Korath
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: AI doesn't get Skeletal Grimace grants regeneration.

Postby Korath » 09 Sep 2016, 19:36

Mostly the same answer as this, except for two points:
  • Obviously, you check affect_me(instance->damage_target_player, instance->damage_target_card) instead of affect_me(player, card).
  • The combat AI's handling of KEYWORD_REGENERATION is pretty broken, since it always assumes the activation cost to regenerate is exactly one mana of the regenerating card's color - put this on a Serra Angel, for example, and it assumes it can regenerate iff the angel's controller has {W} open. (And always exactly {W}, even if the real mana cost wasn't 1 mana, or if there were other activation costs - the AI still thinks Blessing of Leeches and Molting Snakeskin and Soul Channeling all read " {W}: Regenerate enchanted creature" for white creatures up until the point where it actually tries to activate them.) I don't remember how it deals with multicolor creatures offhand.

    If you're adding KEYWORD_REGENERATION only during EVENT_CHECK_ABILITIES, and not EVENT_ABILITIES, this can partially be worked around by checking the activation cost at that point, but the AI will still ignore it if it doesn't have {W} or whatever color available.

edit: fix mana symbol markup
Last edited by Korath on 09 Sep 2016, 20:00, edited 1 time in total.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: AI doesn't get Skeletal Grimace grants regeneration.

Postby Aswan jaguar » 09 Sep 2016, 19:46

Korath wrote:[*]The combat AI's handling of KEYWORD_REGENERATION is pretty broken, since it always assumes the activation cost to regenerate is exactly one mana of the regenerating card's color
That is what I always thought according to my tests,thanks for this confirmation.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [confir]AI doesn't get Skeletal Grimace grants regenerat

Postby Aswan jaguar » 06 Sep 2018, 17:25

---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times


Return to Bug Reports

Who is online

Users browsing this forum: Baidu [Spider] and 30 guests


Who is online

In total there are 31 users online :: 1 registered, 0 hidden and 30 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Baidu [Spider] and 30 guests

Login Form