Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelmer Jaarsma authored and Rottenbeer committed Sep 19, 2022
1 parent c3c5980 commit f033a88
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,7 @@ end
function ItemRack.UpdateClassSpecificStuff()
local _,class = UnitClass("player")

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

if class=="SHAMAN" then
ItemRack.CanWearOneHandOffHand = 1
end

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

0 comments on commit f033a88

Please sign in to comment.