[fix/close]Restless Apparition no get pump p/t ability att/b
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
[fix/close]Restless Apparition no get pump p/t ability att/b
by Aswan jaguar » 23 May 2017, 12:53
Describe the Bug:
AI doesn't consider Restless Apparition pump p/t ability when deciding to attack or block.
Which card did behave improperly?
Restless Apparition - AI part
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 when deciding to attack or block knows that the ability gives +3/+3 for every
it pays.
Are any other cards possibly affected by this bug?
-
AI doesn't consider Restless Apparition pump p/t ability when deciding to attack or block.
Which card did behave improperly?
Restless Apparition - AI part
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 when deciding to attack or block knows that the ability gives +3/+3 for every



Are any other cards possibly affected by this bug?
-
- Attachments
-
ai no get restless apparitus 3-3.rar
- (2.62 KiB) Downloaded 201 times
Last edited by Aswan jaguar on 04 Mar 2019, 13:51, edited 3 times in total.
Reason: bug fixed/closed
Reason: bug fixed/closed
---
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: Restless Apparition doesn't consider pump p/t ability
by stassy » 30 May 2017, 18:46
same behavior with Seal of Strength : AI use it as defensive ability when feeling overwhelmed by another pumping ability and will use it on overkill.


- stassy
- Moderator
- Posts: 5274
- Joined: 25 Feb 2009, 07:06
- Has thanked: 471 times
- Been thanked: 337 times
Re: Restless Apparition doesn't consider pump p/t ability
by Korath » 30 May 2017, 19:13
That's consistent with the reported bug.
The AI picks what creatures it uses to attack or block procedurally: it builds large tables of each potential attacker's and blocker's power and toughness, its current abilities, and - crucially - what abilities and power/toughness boosts those and other cards say they can apply. Those potential abilities and power/toughness modifications have to be programmed explicitly, using the Inflatable Power/Inflatable Toughness flags coupled with the EVENT_POW_BOOST/EVENT_TOU_BOOST events (for power/toughness changes a creature gives to itself); EVENT_CHECK_PUMP (for power/toughness changes an instant in the AI's hand or a permanent on the bf can give to any creature); or EVENT_CHECK_ABILITIES (for power, toughness, or ability changes a permanent on the bf can give to specific creatures, e.g. Pia Nalaar could only use this, not the simpler EVENT_CHECK_PUMP, since it can only pump artifact creatures).
The AI decides whether to activate a given ability by saving the game state, picking some random legal action, seeing what happens, restoring the game state, and repeating, so - once a given combat state has actually arisen - it can find activations like Seal of Strength's and Restless Apparition's without any more effort on our part than to make them activateable for the human. But these combat situations won't actually arise unless the AI would have been desperate enough to attack or block even if the cards weren't pumpable.
The AI picks what creatures it uses to attack or block procedurally: it builds large tables of each potential attacker's and blocker's power and toughness, its current abilities, and - crucially - what abilities and power/toughness boosts those and other cards say they can apply. Those potential abilities and power/toughness modifications have to be programmed explicitly, using the Inflatable Power/Inflatable Toughness flags coupled with the EVENT_POW_BOOST/EVENT_TOU_BOOST events (for power/toughness changes a creature gives to itself); EVENT_CHECK_PUMP (for power/toughness changes an instant in the AI's hand or a permanent on the bf can give to any creature); or EVENT_CHECK_ABILITIES (for power, toughness, or ability changes a permanent on the bf can give to specific creatures, e.g. Pia Nalaar could only use this, not the simpler EVENT_CHECK_PUMP, since it can only pump artifact creatures).
The AI decides whether to activate a given ability by saving the game state, picking some random legal action, seeing what happens, restoring the game state, and repeating, so - once a given combat state has actually arisen - it can find activations like Seal of Strength's and Restless Apparition's without any more effort on our part than to make them activateable for the human. But these combat situations won't actually arise unless the AI would have been desperate enough to attack or block even if the cards weren't pumpable.
-
Korath - DEVELOPER
- Posts: 3708
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1108 times
Re: [confirm]Restless Apparition no get pump p/t ability att
by Aswan jaguar » 04 Mar 2019, 13:50
Has already been fixed in dev. I merged effect cards in commit 542fccb.
---
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 27 guests