Skip to content

Commit

Permalink
Update Wrath+Cata DodgePerAgi
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Apr 30, 2024
1 parent ab9a104 commit 93f4e18
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 10 deletions.
29 changes: 22 additions & 7 deletions libs/StatLogic/Cata_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,41 @@ addon.DodgePerAgi = {
["WARRIOR"] = addon.zero,
["PALADIN"] = addon.zero,
["HUNTER"] = {
[85] = 0.0133266,
0.45430000, -- [1]
[80] = 0.01333760,
[85] = 0.00230177,
},
["ROGUE"] = {
[85] = 0.0240537,
0.91880004, -- [1]
[80] = 0.02474332,
[85] = 0.00430335,
},
["PRIEST"] = {
[85] = 0.0192366,
0.09080001, -- [1]
[80] = 0.01920001,
[85] = 0.00330000,
},
["DEATHKNIGHT"] = addon.zero,
["SHAMAN"] = {
[85] = 0.0192366,
0.16620000, -- [1]
[80] = 0.01920000,
[85] = 0.00330000,
},
["MAGE"] = {
[85] = 0.0195253,
0.07712273, -- [1]
[80] = 0.01951111,
[85] = 0.00331163,
},
["WARLOCK"] = {
[85] = 0.0192366,
0.14830000, -- [1]
[80] = 0.01920000,
[85] = 0.00330000,
},
["DRUID"] = {
[85] = 0.0240458,
0.25239997, -- [1]
[80] = 0.02400000,
[85] = 0.00410000,

},
}

Expand Down
6 changes: 3 additions & 3 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2085,15 +2085,15 @@ if GetCurrentRegion() == 1 or GetCurrentRegion() == 72 and GetLocale() == "enUS"
if tocversion >= 40000 then
rounding = 10 ^ 8
end
if not rawget(addon.CritPerAgi[addon.class], level) then
if not rawget(addon.CritPerAgi[addon.class], level) and addon.CritPerAgi[addon.class] ~= addon.zero then
local critPerAgi = floor(StatLogic:GetCritPerAgi() * rounding + 0.5) / rounding
expansion.CritPerAgi[addon.class][level] = critPerAgi
end
if not rawget(addon.DodgePerAgi[addon.class], level) then
if not rawget(addon.DodgePerAgi[addon.class], level) and addon.DodgePerAgi[addon.class] ~= addon.zero then
local dodgePerAgi = floor(StatLogic:GetDodgePerAgi() * rounding + 0.5) / rounding
expansion.DodgePerAgi[addon.class][level] = dodgePerAgi
end
if not rawget(addon.SpellCritPerInt[addon.class], level) then
if not rawget(addon.SpellCritPerInt[addon.class], level) and addon.SpellCritPerInt[addon.class] ~= addon.zero then
local spellCritPerInt = floor(StatLogic:GetSpellCritPerInt() * rounding + 0.5) / rounding
expansion.SpellCritPerInt[addon.class][level] = spellCritPerInt
end
Expand Down
13 changes: 13 additions & 0 deletions libs/StatLogic/Wrath_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,19 @@ local DodgePerCrit = {

addon.DodgePerAgi = setmetatable({
["HUNTER"] = {
0.3951, 0.3786, 0.3635, 0.3366, 0.3245, 0.3133, 0.3029, 0.2931, 0.2754, 0.2673,
0.2456, 0.2164, 0.1975, 0.1817, 0.1652, 0.1567, 0.1466, 0.1356, 0.1280, 0.1196,
0.1150, 0.1082, 0.1033, 0.0977, 0.0937, 0.0900, 0.0857, 0.0826, 0.0790, 0.0757,
0.0739, 0.0710, 0.0683, 0.0663, 0.0640, 0.0622, 0.0602, 0.0582, 0.0564, 0.0551,
0.0538, 0.0522, 0.0508, 0.0494, 0.0481, 0.0471, 0.0459, 0.0445, 0.0435, nil,
[67] = 0.0258,
[68] = 0.0253,
[69] = 0.0247,
[70] = 0.0241,
[75] = 0.0167,
[76] = 0.0155,
[77] = 0.0144,
[78] = 0.0134,
[80] = 0.0116,
},
["WARLOCK"] = {
Expand Down

0 comments on commit 93f4e18

Please sign in to comment.