Lucky Day's Wizard War! for Android development thread
View Single Post
November 10th, 2013, 01:53
mana bug tracked down.
the player was losing mana when an enemy cast a spell in high level combat. First I tracked it down to invisibility, then I saw that it was double dipping. Both the enemy and the player were losing mana.
When I checked before and after mana, surprisingly the players mana was already -8 lower than it should be - this wasn't displayed on the screen. I already confirmed the player's mana was where it should be in their spell method so something was happening in between.
I tracked hte problem down to the enmy version of the shield spell. There was a check on it but the player was being sent as the casting object instead of the enemy. A simple fix and a test and its working great.
Now to get Toff a new beta…
Developer of The Wizard's Grave Android game. Discussion Thread:
Join Date: Oct 2006
Location: The Uncanny Valley
Mentioned: 3 Post(s)
View Public Profile
Send a private message to Lucky Day
Find More Posts by Lucky Day