Automatically switch your action bar back to ranged page when clearing your target
Description: This goes with the above script that changes the action bar automatically based on the target's distance. Use this to automatically switch back to your ranged bar when clearing your target.
How to use: Execute on event: PLAYER_TARGET_CHANGED
if (not UnitName("target")) then
CURRENT_ACTIONBAR_PAGE = 3
ChangeActionBarPage()
end