Quantcast
WoWInterface - View Single Post - attempt to compare number with nil
View Single Post
01-10-21, 06:17 AM   #2
LudiusMaximus
A Frostmaul Preserver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 278
GetXPExhaustion returns nil when you are not rested. So instead of

Code:
if restedxp == 0
you have to do

Code:
if restedxp == nil
or just

Code:
if not restedxp
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 01-10-21 at 09:15 AM.
  Reply With Quote