Delay registering your PRD and PUD events until after either ADDON_LOADED or PLAYER_ENTERING_WORLD. You are likely registering PRD and PUD too early in the loading process. I'd use PEW to be on the safe side; it is late enough in the loading process that most other events will function when hooked.
Side note: you don't need to create 3 frames. Create one, register PEW on it, register the other events during PEW, and check if event == blah, elseif event == blah2, elseif event == blah3, end.
Last edited by myrroddin : 11-01-23 at 11:14 AM.
Reason: clarity
|