Skip to content

Commit

Permalink
Addon is now loaded when Logics Package available for current player'…
Browse files Browse the repository at this point in the history
…s class (instead of loading for Druids only)
  • Loading branch information
homo-programmatis committed Sep 17, 2016
1 parent b29fb6c commit 77ab7e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CatRotationHelper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ end
-- end

function CatRotationHelper_EntryPoint_OnLoad(self)
-- load addon on druids only
local class = select(2, UnitClass("player"))
if(class ~= "DRUID") then
local playerClass = select(2, UnitClass("player"))
if (nil == g_Addon.GetPackage[playerClass]) then
-- This class is not supported, do not load addon at all
return;
end

Expand Down

0 comments on commit 77ab7e5

Please sign in to comment.