Formula
CommonFun.calcBuff_8390
function CommonFun.calcBuff_8390(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local fushou = srcUser:GetEquipTypeByPos(1)
local wuqi = srcUser:GetEquipTypeByPos(7)
local skilllv = srcUser:GetLernedSkillLevel(2744_SAINT:CAST_BLADE)
local LongNum = 0
local ShortNum = 0
if fushou == 180 and wuqi == 180 then
LongNum = 2
elseif fushou == 180 or wuqi == 180 then
LongNum = 1
end
if fushou == 250 and wuqi == 250 then
ShortNum = 2
elseif fushou == 250 or wuqi == 250 then
ShortNum = 1
end
local A = LongNum * (a * skilllv + c) + ShortNum * (b * skilllv + d)
return A
end