aUF = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceDebug-2.0", "AceHook-2.0", "AceDB-2.0", "AceConsole-2.0") local AceOO = AceLibrary("AceOO-2.0") aUF.aUFunit = AceOO.Class() function aUF.aUFunit.prototype:init() aUF.aUFunit.super.prototype.init(self) self:RegisterEvent("PLAYER_TARGET_CHANGED") end