Зоро прошу помоги разобраться, как это вообще считается
Код:
self.Calculation["Shield Slam"] = function( calculation, ActiveAuras, Talents )
local dr = 24.5 * calculation.playerLevel --1960 at level 80
local cap = 39.5 * calculation.playerLevel --3160 at level 80
local bv = calculation.blockValue
local bonus = 0
if ActiveAuras["Shield Block"] then
local mult = (Talents["Shield Mastery"] or 0) + (self:HasGlyph(58375) and 0.1 or 0) + self.MetaGem_BlockBonus
local bonus = bv / (2 + mult)
bv = bonus * (1 + mult)
end
--TODO: Fix this to 3.3.2 values, for now assuming linear diminishing returns
if bv > dr then
--At level 80 true bonus is 2072 with 3160 blockvalue
bv = math_min(cap, bv)
local c = (bv - dr)/(cap - dr) * (2072/3160)
bv = dr + (bv - dr) * (1 - c)
end
calculation.minDam = calculation.minDam + bv + bonus
calculation.maxDam = calculation.maxDam + bv + bonus
if self:GetSetAmount("T7 - Prot") >= 2 then
calculation.dmgM_Add = calculation.dmgM_Add + 0.1
end
if self:GetSetAmount( "T10 - Prot" ) >= 2 then
calculation.dmgM_Add = calculation.dmgM_Add + 0.2
end
end
И научи убирать в скрытый текст или офтоп...