Page 1 of 1

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

PostPosted: 09 Sep 2016, 18:32
by Aswan jaguar
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 ?
-

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

PostPosted: 09 Sep 2016, 19:36
by Korath
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

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

PostPosted: 09 Sep 2016, 19:46
by Aswan jaguar
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.

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

PostPosted: 06 Sep 2018, 17:25
by Aswan jaguar