Skip to content

Commit

Permalink
Fixed Talents
Browse files Browse the repository at this point in the history
  • Loading branch information
Rottenbeer committed Sep 7, 2019
1 parent baae496 commit 92642f7
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ function ItemRack.OnPlayerLogin()
handler.CHARACTER_POINTS_CHANGED = ItemRack.UpdateClassSpecificStuff
handler.PLAYER_TALENT_UPDATE = ItemRack.UpdateClassSpecificStuff
handler.ACTIVE_TALENT_GROUP_CHANGED = ItemRack.UpdateClassSpecificStuff
handler.PET_BATTLE_OPENING_START = ItemRack.OnEnteringPetBattle
handler.PET_BATTLE_CLOSE = ItemRack.OnLeavingPetBattle
-- handler.PET_BATTLE_OPENING_START = ItemRack.OnEnteringPetBattle
-- handler.PET_BATTLE_CLOSE = ItemRack.OnLeavingPetBattle

ItemRack.InitCore()
ItemRack.InitButtons()
Expand Down Expand Up @@ -305,26 +305,17 @@ end
function ItemRack.UpdateClassSpecificStuff()
local _,class = UnitClass("player")

if class=="WARRIOR" or class=="ROGUE" or class=="HUNTER" or class=="DEATHKNIGHT" or class=="MONK" then
if class=="WARRIOR" or class=="ROGUE" or class=="HUNTER" or class=="MAGE" or class=="WARLOCK" then
ItemRack.CanWearOneHandOffHand = 1
end

if class=="WARRIOR" then
if (GetSpecialization() == 2) then
ItemRack.HasTitansGrip = 1
ItemRack.SlotInfo[17].INVTYPE_2HWEAPON = 1
else
ItemRack.HasTitansGrip = nil
ItemRack.SlotInfo[17].INVTYPE_2HWEAPON = nil
end
ItemRack.HasTitansGrip = nil
ItemRack.SlotInfo[17].INVTYPE_2HWEAPON = nil
end

if class=="SHAMAN" then
if (GetSpecialization() == 2) then
ItemRack.CanWearOneHandOffHand = 1
else
ItemRack.CanWearOneHandOffHand = nil
end
ItemRack.CanWearOneHandOffHand = 1
end
end

Expand Down Expand Up @@ -2001,7 +1992,10 @@ function ItemRack.ProfileFuncs()
end

function GetInspectSpecialization()

return 0;
end

function GetSpecialization()
return 0;
end

0 comments on commit 92642f7

Please sign in to comment.