Shandalar - Program Bugs
Bloodrage Vampire erroneously gets bloodthirst counter when drawn as starting advantage (fix completed)
I had Bloodrage Vampire in my deck, picked up dice in a dungeon and rolled this card as starting advantage. When the duel started, it had the bloodlust counter, as if I had damaged the enemy earlier that turn:
http://i103.photobucket.com/albums/m156/jiansonz/Bloodrage%20vampire%20weird%20counter_zpsmtd7obvp.jpg
This happened a couple of times, and was consistent (i.e. it always happened if I rolled that card as starting advantage).
I have not tested with other creature cards that have bloodlust.
http://i103.photobucket.com/albums/m156/jiansonz/Bloodrage%20vampire%20weird%20counter_zpsmtd7obvp.jpg
This happened a couple of times, and was consistent (i.e. it always happened if I rolled that card as starting advantage).
I have not tested with other creature cards that have bloodlust.
Last edited by Korath on 09 Jun 2015, 00:28, edited 2 times in total.
Reason: rename from "Bloodrage Vampire erroneously gets bloodlust counter when drawn as starting advantage"
Reason: rename from "Bloodrage Vampire erroneously gets bloodlust counter when drawn as starting advantage"
Comments
Posted by Korath » 09 Jun 2015, 00:27
commit 38ec71d9a364ac9456607c7512a2c376a7f797b4
Author: Korath <dgk@Dirge.none>
Date: Mon Jun 8 20:25:45 2015 -0400
[Shandalar] FIX #612: clear replaced globals in start_duel before free cards
The big buffer formerly used by Reverse Damage, Reverse Polarity and Simulacrum
in which we're storing globals that need to be restored after AI speculation
normally only gets cleared at the start of a game turn. Since some cards look
at these vars when they enter play, like damage_taken_this_turn[] for cards
with bloodthirst, they saw the values from the last turn of the previous game
if the card is put_into_play()'d for free (either as an AI or player bonus) at
the start of the game, which happens surprisingly early in start_duel().
Author: Korath <dgk@Dirge.none>
Date: Mon Jun 8 20:25:45 2015 -0400
[Shandalar] FIX #612: clear replaced globals in start_duel before free cards
The big buffer formerly used by Reverse Damage, Reverse Polarity and Simulacrum
in which we're storing globals that need to be restored after AI speculation
normally only gets cleared at the start of a game turn. Since some cards look
at these vars when they enter play, like damage_taken_this_turn[] for cards
with bloodthirst, they saw the values from the last turn of the previous game
if the card is put_into_play()'d for free (either as an AI or player bonus) at
the start of the game, which happens surprisingly early in start_duel().
1 Post
• Page 1 of 1
Ticket details
- Ticket ID: 612
- Project: Shandalar
- Status: Fix completed
- Component: Duel Engine
- Project version: Ruined Tower 2
- Priority: Normal
- Severity: Normal
- Assigned to: Korath
- Reported by: jiansonz
- Reporter's tickets: List all tickets
- Reported on: 07 Jun 2015, 21:51
- Last visited by Korath » 10 Jun 2015, 08:17.
