When self.initialXP is set to UnitXP("player") in OnInitialize, for some reason that always ends up as 0. So when calculating the session xp, you end up getting your XP for the level plus any accumulated. I have temporarly fixed this by setting self.initialXP in OnEnable instead and that seems to have corrected the problem.
I actually found this when adding another possible value to display in FuBar which is Current Session XP. I figured it was in the tooltip, should be an option on the bar itself. I submitted a feature request sometime back and have been just putting this in from version to version. :)
Thanks. |