From 92642f765aa326e664862fa4ec49dfa37b7ae222 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Sat, 7 Sep 2019 12:08:46 +0200 Subject: [PATCH] Fixed Talents --- ItemRack/ItemRack.lua | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/ItemRack/ItemRack.lua b/ItemRack/ItemRack.lua index 9f726d1..0a58f07 100644 --- a/ItemRack/ItemRack.lua +++ b/ItemRack/ItemRack.lua @@ -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() @@ -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 @@ -2001,7 +1992,10 @@ function ItemRack.ProfileFuncs() end function GetInspectSpecialization() - return 0; +end +function GetSpecialization() + return 0; end +