1function CommonFun.calcBuff_3030(srcUser, targetUser, a, b, c, d, lv)
2 if srcUser == nil or targetUser == nil then
3 return 0
4 end
5 local PoisonAtk = srcUser:GetProperty("PoisonAtk")
6 local PoisonDef2 = targetUser:GetProperty("PoisonDef")
7 local PoisonDam = 1 + PoisonAtk - PoisonDef2
8 if PoisonDam <= 0 then
9 PoisonDam = 0
10 end
11 local StateAtk = srcUser:GetProperty("StateAtk")
12 local StateDef2 = targetUser:GetProperty("StateDef")
13 local StateDam = (1 + StateAtk) * (1 - StateDef2)
14 if StateDam <= 0 then
15 StateDam = 0
16 end
17 local skilllv_1 = srcUser:GetLernedSkillLevel(1101_ARCANE_MASTER:POISONOUS_WEAPON)
18 local skilllv_2 = srcUser:GetLernedSkillLevel(1102_ARCANE_MASTER:NEW_POISON_RESEARCH)
19 local Num = srcUser:GetRunePoint(34060_AESIR_DURATION_OF_NEW_POISON_2_SEC)
20 local A = (10 + skilllv_1 + skilllv_2 + Num * 2) * PoisonDam * StateDam * CommonFun.calcAttrPoisonTime(srcUser, targetUser)
21 if A <= 0 then
22 return 0
23 end
24 return A
25end