Skip to content

Commit

Permalink
Fix feral weapon skill
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Dec 3, 2023
1 parent 8512f0e commit dbc8212
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,16 @@ local function GetTotalDefense(unit)
end

local function GetTotalWeaponSkill(unit)
local base, modifier = UnitAttackBothHands(unit);
return base + modifier
if addon.class == "DRUID" and (
StatLogic:GetAuraInfo(GetSpellInfo(768), true)
or StatLogic:GetAuraInfo(GetSpellInfo(5487), true)
or StatLogic:GetAuraInfo(GetSpellInfo(9634), true)
) then
return UnitLevel("player") * 5
else
local base, modifier = UnitAttackBothHands(unit);
return base + modifier
end
end

StatLogic.StatModInfo = {
Expand Down

0 comments on commit dbc8212

Please sign in to comment.