Shandalar - Program Bugs
Drafna's Restoration played by the AI somehow decks the player (fix completed)
Another Shapeshifter bug: whenever it casts Drafna's Restoration the player gets inexplicably decked on the next turn. (The game ends as you loss because you can't draw any more cards). It tends to cast it very early on after inexplicably causing it's intial shapeshifter to die (even though it picked 0/7 and not 7/0).
---
After having it happen several times in a row, I've finally got to see the AI cast the spell and not crash the game. The AI had an artifact in the grave and I didn't, and the restoration didn't have any effect - I assume the AI cast it on me for 0 artifacts, except this time the game didn't crash for some reason.
---
After having it happen several times in a row, I've finally got to see the AI cast the spell and not crash the game. The AI had an artifact in the grave and I didn't, and the restoration didn't have any effect - I assume the AI cast it on me for 0 artifacts, except this time the game didn't crash for some reason.
Last edited by Korath on 14 Oct 2015, 15:30, edited 3 times in total.
Reason: version TH2->RT1 - original Microprose bug
Reason: version TH2->RT1 - original Microprose bug
Comments
Posted by Aswan jaguar » 13 Oct 2015, 16:26
The decked bug possibly same here (the last one):
viewtopic.php?f=76&t=17168&p=179421&hilit=Invisible+card#p179421
viewtopic.php?f=76&t=17168&p=179421&hilit=Invisible+card#p179421
Posted by Korath » 14 Oct 2015, 15:30
What's happening is that the AI only ever searches its own graveyard for the "best" artifact to put on top of a library ("best" here means the one with the highest cmc). When it targets the human, it uses the index of the best artifact in the AI's graveyard; if the human doesn't have a card at that slot in his graveyard, it puts a null card on the human's library, which gets interpreted as the end-of-library marker.
Posted by Korath » 19 Oct 2015, 04:00
Irritatingly hard to test; once casting it on you no longer empties your library, the AI's no longer terribly interested in targeting you with it.
Posted by Korath » 19 Oct 2015, 04:16
commit cdea4799ce13b2d0ef01f5fb32f4c8fae4f376bb
Author: Korath <dgk@Dirge.none>
Date: Mon Oct 19 00:15:19 2015 -0400
[TH] FIX #778: Drafna's Restoration AI looks in same graveyard it's targeting
Rather than always picking the "best" card from the AI's graveyard no matter
which player it's targeting, then using that index even if it's a null card and
therefore "emptying" the human's library.
Fixed the MicroProse implementation in-place - it's still impossible to rewrite
this idiomatically, since it has multiple disparate targets (never mind that
the MicroProse version doesn't actually target any of the cards in the targeted
player's graveyard; it selects them at resolution), and coming up with a
reasonable AI behavior when it's targeted the human is difficult (never mind
that the MicroProse version just picks the single artifact with the highest
converted mana cost, just like when the AI targets itself).
Author: Korath <dgk@Dirge.none>
Date: Mon Oct 19 00:15:19 2015 -0400
[TH] FIX #778: Drafna's Restoration AI looks in same graveyard it's targeting
Rather than always picking the "best" card from the AI's graveyard no matter
which player it's targeting, then using that index even if it's a null card and
therefore "emptying" the human's library.
Fixed the MicroProse implementation in-place - it's still impossible to rewrite
this idiomatically, since it has multiple disparate targets (never mind that
the MicroProse version doesn't actually target any of the cards in the targeted
player's graveyard; it selects them at resolution), and coming up with a
reasonable AI behavior when it's targeted the human is difficult (never mind
that the MicroProse version just picks the single artifact with the highest
converted mana cost, just like when the AI targets itself).
4 Posts
• Page 1 of 1
Ticket details
- Ticket ID: 778
- Project: Shandalar
- Status: Fix completed
- Component: Individual Card
- Project version: Ruined Tower 1
- Priority: Normal
- Severity: Normal
- Assigned to: Korath
- Reported by: lujo
- Reporter's tickets: List all tickets
- Reported on: 13 Oct 2015, 14:02
- Last visited by Korath » 26 Oct 2015, 09:02.
