.................................................. ...........................PHP код:function module:OnEnable()
self:SPELLS_CHANGED()
self:RegisterEvent("SPELLS_CHANGED")
self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN")
self:RegisterEvent("UNIT_SPELLCAST_FAILED")
end
PHP код:function module:UNIT_SPELLCAST_FAILED(...)
local _, unit = ...
if unit == "player" then
self:Hide()
end
end




Ответить с цитированием