Код:
--Sacred Shield
self.TargetAura[GetSpellInfo(58597)] = { Spells = 19750, SelfCastBuff = true, ID = 58597, ModType =
function( calculation, ActiveAuras, Talents, _, _, texture )
if not texture or string_find(texture, "Ability_Paladin_GaurdedbytheLight") then
calculation.critPerc = calculation.critPerc + 50
end
if Talents["Infusion of Light"] and not ActiveAuras["Sacred Shield"] then
calculation.hybridCanCrit = true
calculation.hybridDotDmg = Talents["Infusion of Light"] * (calculation.minDam + calculation.maxDam)/2
calculation.spellDmgM_dot = Talents["Infusion of Light"] * calculation.spellDmgM
calculation.eDuration = 12
calculation.sTicks = 1
if self:GetSetAmount( "T9 Holy" ) >= 4 then
calculation.dmgM_dot = calculation.dmgM_dot * 2
end
if Talents["Divinity Bonus"] then
--Multiplicative - 3.3.3
calculation.dmgM_dot = calculation.dmgM_dot * (1 + Talents["Divinity Bonus"])
if not UnitIsFriend("target","player") or UnitIsUnit("player","target") then
calculation.dmgM_dot = calculation.dmgM_dot * (1 + Talents["Divinity Bonus"])
end
end
end
ActiveAuras["Sacred Shield"] = true
end
}
[GetSpellInfo(53601)] = {
--BASE OK, INCREASE OK, COEFFICIENT X, DOWNRANK OK
["Name"] = "Sacred Shield",
[0] = { School = { "Holy", "Healing" }, SPBonus = 0.75, castTime = 1.5, Cooldown = 6 },
[1] = { 500, 500, spellLevel = 80, },
},
Я плохо перевожу))