From dbc821242bf02f37ef8e47429dc6c91519c1540b Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Sun, 3 Dec 2023 09:13:23 -0600 Subject: [PATCH] Fix feral weapon skill --- libs/StatLogic/StatLogic.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/StatLogic/StatLogic.lua b/libs/StatLogic/StatLogic.lua index 5a7f0c3..f364565 100644 --- a/libs/StatLogic/StatLogic.lua +++ b/libs/StatLogic/StatLogic.lua @@ -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 = {