1function CommonFun.calcBuff_1800(srcUser, targetUser, a, b, c, d, lv)
2 if srcUser == nil or targetUser == nil then
3 return 0
4 end
5 local CurseAtk = srcUser:GetProperty("CurseAtk")
6 local CurseDef2 = targetUser:GetProperty("CurseDef")
7 local CurseDam = 1 + CurseAtk - CurseDef2
8 if CurseDam <= 0 then
9 CurseDam = 0
10 end
11 local StateAtk = srcUser:GetProperty("StateAtk")
12 local StateDef2 = targetUser:GetProperty("StateDef")
13 local StateDam = 1 + StateAtk - StateDef2
14 if StateDam <= 0 then
15 StateDam = 0
16 end
17 local A = (lv * a + b) * CurseDam * StateDam * CommonFun.calcAttrCurseTime(srcUser, targetUser)
18 if A <= 0 then
19 return 0
20 end
21 return A
22end