Skip to content

Commit bf13590

Browse files
committed
Implement MoP Guardian dynamic armor multiplier from mastery (Fixes #219)
1 parent 0a4b0de commit bf13590

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

libs/StatLogic/Mists_Logic.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,11 +859,11 @@ if addon.class == "DRUID" then
859859
["aura"] = 33891,
860860
["group"] = addon.ExclusiveGroup.Feral,
861861
},
862-
-- Passive: Mastery: Nature's Guardian
863-
-- TODO: Get value from tooltip?
862+
-- Passive: Mastery: Nature's Guardian (Bear Form)
864863
{
864+
["aura"] = 5487,
865865
["known"] = 77494,
866-
["value"] = 0.16,
866+
["mastery"] = true,
867867
},
868868
-- Buff: Moonkin Form
869869
{

libs/StatLogic/StatLogic.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,11 @@ addon.StatModValidators = {
11661166
["PLAYER_LEVEL_UP"] = true,
11671167
},
11681168
},
1169+
mastery = {
1170+
events = {
1171+
["UNIT_STATS"] = "player",
1172+
},
1173+
},
11691174
meta = {
11701175
validate = function(case)
11711176
return case.meta == equipped_meta_gem
@@ -1479,6 +1484,8 @@ do
14791484
elseif case.tooltip then
14801485
local aura = StatLogic:GetAuraInfo(case.aura, false, case.exact)
14811486
newValue = aura.tooltip
1487+
elseif case.mastery then
1488+
newValue = GetMasteryEffect() / 100
14821489
end
14831490

14841491
if newValue then

0 commit comments

Comments
 (0)