From 8512f0ee74f5b8031a76de45037b367cd05b488a Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Sat, 2 Dec 2023 23:24:16 -0600 Subject: [PATCH] Fix feral AP --- libs/StatLogic/Cata_Logic.lua | 12 +++++++++++ libs/StatLogic/TBC_Logic.lua | 17 +++++++++++++++ libs/StatLogic/Vanilla_Logic.lua | 17 +++++++++++++++ libs/StatLogic/Wrath_Logic.lua | 36 +++++++++++++++++--------------- libs/StatLogic/locales/enUS.lua | 2 +- 5 files changed, 66 insertions(+), 18 deletions(-) diff --git a/libs/StatLogic/Cata_Logic.lua b/libs/StatLogic/Cata_Logic.lua index b9aa480..bc36728 100644 --- a/libs/StatLogic/Cata_Logic.lua +++ b/libs/StatLogic/Cata_Logic.lua @@ -324,6 +324,18 @@ local BuffGroup = { StatLogic.StatModTable = {} if addon.class == "DRUID" then StatLogic.StatModTable["DRUID"] = { + ["ADD_AP_MOD_FERAL_AP"] = { + -- Cat Form + { + ["value"] = 1, + ["buff"] = 768, + }, + -- Bear Form + { + ["value"] = 1, + ["buff"] = 5487, + }, + }, ["ADD_AP_MOD_STR"] = { { ["value"] = 1, diff --git a/libs/StatLogic/TBC_Logic.lua b/libs/StatLogic/TBC_Logic.lua index 8c75b0d..c742f0f 100644 --- a/libs/StatLogic/TBC_Logic.lua +++ b/libs/StatLogic/TBC_Logic.lua @@ -238,6 +238,23 @@ addon.DodgePerAgiMaxLevel = {} StatLogic.StatModTable = {} if addon.class == "DRUID" then StatLogic.StatModTable["DRUID"] = { + ["ADD_AP_MOD_FERAL_AP"] = { + -- Cat Form + { + ["value"] = 1, + ["buff"] = 768, + }, + -- Bear Form + { + ["value"] = 1, + ["buff"] = 5487, + }, + -- Dire Bear Form + { + ["value"] = 1, + ["buff"] = 9634, + }, + }, ["ADD_AP_MOD_STR"] = { { ["value"] = 2, diff --git a/libs/StatLogic/Vanilla_Logic.lua b/libs/StatLogic/Vanilla_Logic.lua index 6925462..df935aa 100644 --- a/libs/StatLogic/Vanilla_Logic.lua +++ b/libs/StatLogic/Vanilla_Logic.lua @@ -157,6 +157,23 @@ local BuffGroup = { StatLogic.StatModTable = {} if addon.class == "DRUID" then StatLogic.StatModTable["DRUID"] = { + ["ADD_AP_MOD_FERAL_AP"] = { + -- Cat Form + { + ["value"] = 1, + ["buff"] = 768, + }, + -- Bear Form + { + ["value"] = 1, + ["buff"] = 5487, + }, + -- Dire Bear Form + { + ["value"] = 1, + ["buff"] = 9634, + }, + }, ["ADD_AP_MOD_STR"] = { { ["value"] = 2, diff --git a/libs/StatLogic/Wrath_Logic.lua b/libs/StatLogic/Wrath_Logic.lua index 591257b..a139fff 100644 --- a/libs/StatLogic/Wrath_Logic.lua +++ b/libs/StatLogic/Wrath_Logic.lua @@ -1000,6 +1000,23 @@ local BuffGroup = { StatLogic.StatModTable = {} if addon.class == "DRUID" then StatLogic.StatModTable["DRUID"] = { + ["ADD_AP_MOD_FERAL_AP"] = { + -- Cat Form + { + ["value"] = 1, + ["buff"] = 768, + }, + -- Bear Form + { + ["value"] = 1, + ["buff"] = 5487, + }, + -- Dire Bear Form + { + ["value"] = 1, + ["buff"] = 9634, + }, + }, ["ADD_AP_MOD_STR"] = { { ["value"] = 2, @@ -1211,24 +1228,9 @@ if addon.class == "DRUID" then ["buff"] = 9634, -- ["Dire Bear Form"], }, }, - --if class == "DRUID" and select(5, GetTalentInfo(2, 10)) > 0 and weaponItemEquipLoc[select(9, GetItemInfo(link))] then -- Druid: Predatory Strikes (Rank 3) - 2,10 - -- Increases your melee attack power in Cat, Bear and Dire Bear Forms by - -- 7,14,20% of any attack power on your equipped weapon. - ["ADD_AP_MOD_FERAL_AP"] = { - { - ["value"] = 1, - ["buff"] = 32356, -- ["Cat Form"], - }, - { - ["value"] = 1, - ["buff"] = 32357, -- ["Bear Form"], - }, - { - ["value"] = 1, - ["buff"] = 9634, -- ["Dire Bear Form"], - }, - }, + -- Increases your melee attack power in Cat, Bear and Dire Bear Forms by + -- 7,14,20% of any attack power on your equipped weapon. ["MOD_FERAL_AP"] = { { ["tab"] = 2, diff --git a/libs/StatLogic/locales/enUS.lua b/libs/StatLogic/locales/enUS.lua index af92f9a..628f841 100644 --- a/libs/StatLogic/locales/enUS.lua +++ b/libs/StatLogic/locales/enUS.lua @@ -305,8 +305,8 @@ L["StatIDLookup"] = { ["Increases attack powerwhen fighting Undead. It also allows the acquisition of Scourgestones on behalf of the Argent Dawn"] = {"AP_UNDEAD",}, -- [Seal of the Dawn] ID:13209 ["Increases attack powerwhen fighting Demons"] = {"AP_DEMON",}, ["Increases attack powerwhen fighting Undead and Demons"] = {"AP_UNDEAD", "AP_DEMON",}, -- [Mark of the Champion] ID:23206 - ["Attack Power in Cat, Bear, and Dire Bear forms only"] = {"FERAL_AP",}, ["Increases attack powerin Cat"] = {"FERAL_AP",}, + ["attack power in cat"] = {"FERAL_AP",}, ["Ranged Attack Power"] = {"RANGED_AP",}, ["Increases ranged attack power"] = {"RANGED_AP",}, -- [High Warlord's Crossbow] ID: 18837