View Single Post
07-04-12, 10:04 AM   #22
Coldkil
A Cliff Giant
 
Coldkil's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 70
Originally Posted by zork View Post
Actually there are npcs with 0 max mana. Thus an exception for max value = 0 should be added anyway.
Quoting the smallest post, but all of them are useful.

About the mana/power issue, it was due to npc with 0 power - so the check is needed anyway. It happened when selecting a target npc or when it was the ToT/focus. I made the edits suggested by Phanx and double-checked it.

The XP issue happens for the "same" reason - it seems that when PLAYER_ENTERING_WORLD fires any character has 0 max xp (bug?). Making the check obviously works. Also unregistering the event above works and the error is never fired. Dunno why this happens, probably i'm just trying to get values before they are set in game.

All the other things are fine, these are the only two values affected.
  Reply With Quote