If you react to PLAYER_REGEN_DISABLED and PLAYER_REGEN_ENABLED events, they fire when you enter or leave combat respectively.
PS: Don't ever run select(1,...), you're wasting CPU time on a call that does absolutely nothing.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
Last edited by SDPhantom : 09-29-16 at 01:04 AM.
|