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

Posted:
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.

Posted:
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
open. (And always exactly
, 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 "
: 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
or whatever color available.
edit: fix mana symbol markup
Re: AI doesn't get Skeletal Grimace grants regeneration.

Posted:
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

Posted:
06 Sep 2018, 17:25
by Aswan jaguar
The vast majority of bellow cards have the same problem. The uncoded cards are not all listed.
- List | Open
- Anavolver
Asceticism
Baron Sengir
Black Poplar Shaman ? Not coded
Blessing of Leeches
Boon of Erebos
Broken Fall
Butcher's Glee
Carapace
Clockwork Gnomes
Clot Sliver
Consecrated by Blood ? Not coded
Crypt Sliver
Dark Dabbling
Dark Privilege
Daru Mender ? Not coded
Dawn Charm
Debt of Loyalty
Defiling Tears
Degavolver
Delif's Cube
Draconian Cylix ? Not coded
Duskworker ? Not coded
Elephant Graveyard
Ezuri, Renegade Leader
Fanatical Devotion
Fiddlehead Kami
Fortitude
Full Moon's Rise
Gaze of the Gorgon
Gobhobbler Rats
Goblin Chirurgeon
Golgari Charm
Gore Vassal
Heal the Scars
Herbal Poultice
Horizon Seed
Horror of Horrors
Isao, Enlightened Bushi
Jolrael's Favor
Keldon Mantle
Krosan Warchief
Life Matrix
Lim-Dûl the Necromancer
Loxodon Hierarch
Loxodon Mender
Mad Auntie
Medicine Bag
Mending Touch
Metallurgeon
Molting Skin
Molting Snakeskin
Necrobite
Niall Silvain
Nurturing Licid
Poultice Sliver
Pteron Ghost
Ragnar
Refresh
Regenerate
Regeneration
Reknit
Resuscitate
Ring of Xathrid
Run Wild
Rushwood Herbalist
Savage Thallid
Sedge Sliver
Seedling Charm
Serpent Skin
Skeletal Grimace
Skeletal Vampire
Soul Channeling
Spawning Pool Animated
Sporeback Troll
Stamina
Strands of Undeath
Swarmyard
Tel-Jilad Lifebreather
The Brute
Thrull Retainer
Tribal Golem
Trollhide
Trolls of Tel-Jilad
Unnatural Endurance
Vagrant Plowbeasts
Vigilant Martyr
Village Elder
Vital Splicer
Vitality Charm
Wail of the Nim
Welding Jar
Wrap in Vigor
Yavimaya Hollow
Zombie Master
Suture Spirit