diff --git a/ConRO.toc b/ConRO.toc index 0bc4793..03db12a 100644 --- a/ConRO.toc +++ b/ConRO.toc @@ -1,6 +1,6 @@ ## Title:-|cffFFFFFFConRO|r- Conflict Rotation Optimizer ## Notes: Rotation helper framework. -## Version: 10.0.2 +## Version: 10.0.3 ## Author: Vae ## Interface: 100002 ## SavedVariables: ConROPreferences @@ -19,7 +19,6 @@ Libs\AceGUI-3.0\AceGUI-3.0.xml Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml Libs\AceConfig-3.0\AceConfig-3.0.xml -config.lua core.lua buttons.lua helper.lua diff --git a/config.lua b/config.lua deleted file mode 100644 index 8b13789..0000000 --- a/config.lua +++ /dev/null @@ -1 +0,0 @@ - diff --git a/core.lua b/core.lua index cf17749..8c53507 100644 --- a/core.lua +++ b/core.lua @@ -2065,6 +2065,8 @@ function ConRO:EnableDefense() end self.FetchDef(); + self:CheckTalents(); + self:CheckPvPTalents(); if self.ModuleOnEnable then self.ModuleOnEnable(); @@ -2128,7 +2130,7 @@ end function ConRO:OnEnable() self:RegisterEvent('PLAYER_TARGET_CHANGED'); - --self:RegisterEvent('PLAYER_TALENT_UPDATE'); + self:RegisterEvent('ACTIVE_PLAYER_SPECIALIZATION_CHANGED'); self:RegisterEvent('TRAIT_CONFIG_UPDATED'); self:RegisterEvent('ACTIONBAR_SLOT_CHANGED'); self:RegisterEvent('PLAYER_REGEN_DISABLED'); @@ -2157,14 +2159,14 @@ function ConRO:OnEnable() self:Print(self.Colors.Info .. 'Initialized'); end ---[[function ConRO:PLAYER_TALENT_UPDATE() +function ConRO:ACTIVE_PLAYER_SPECIALIZATION_CHANGED() --self:Print(self.Colors.Success .. 'Talent'); self:DisableRotation(); self:DisableDefense(); self:LoadModule(); self:EnableRotation(); self:EnableDefense(); - + if ConRO:HealSpec() then ConROWindow:Hide(); ConRONextWindow:Hide(); @@ -2178,10 +2180,10 @@ end ConRONextWindow:Hide(); ConRONext2Window:Hide(); end -end]] +end function ConRO:TRAIT_CONFIG_UPDATED() -self:Print(self.Colors.Success .. 'Talent'); +--self:Print(self.Colors.Success .. 'Talent'); self:DisableRotation(); self:DisableDefense(); self:LoadModule();