Skip to content

Commit

Permalink
Found new talent system issue
Browse files Browse the repository at this point in the history
This should fix a lot of current lua errors
  • Loading branch information
Vae2009 committed Nov 26, 2022
1 parent 9aa8734 commit 6a78b7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions ConRO.toc
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion config.lua

This file was deleted.

12 changes: 7 additions & 5 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,8 @@ function ConRO:EnableDefense()
end

self.FetchDef();
self:CheckTalents();
self:CheckPvPTalents();

if self.ModuleOnEnable then
self.ModuleOnEnable();
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 6a78b7e

Please sign in to comment.