Formula
CommonFun.calcSkillMDamReduc
function CommonFun.calcSkillMDamReduc(srcUser, targetUser)
if srcUser == nil or targetUser == nil then
return 0
end
local SteelMDamReduc = targetUser:GetProperty("SteelMDamReduc")
local ProtectMDamReduc = targetUser:GetProperty("ProtectMDamReduc")
local HideMDamReduc = targetUser:GetProperty("HideMDamReduc")
local DragonMDamReduc = targetUser:GetProperty("DragonMDamReduc")
local WindMDamReduc = targetUser:GetProperty("WindMDamReduc")
local DeadMDamReduc = targetUser:GetProperty("DeadMDamReduc")
local SkillMDamReduc = (1 - SteelMDamReduc) * (1 - ProtectMDamReduc) * (1 - HideMDamReduc) * (1 - DragonMDamReduc) * (1 - WindMDamReduc) * (1 - DeadMDamReduc)
if SkillMDamReduc <= 0.1 then
SkillMDamReduc = 0.1
end
return SkillMDamReduc
end