1function CommonFun.calcBuff_2090(srcUser, targetUser, a, b, c, d, lv)
2 if srcUser == nil or targetUser == nil then
3 return 0
4 end
5 local MaxHp = srcUser:GetProperty("MaxHp")
6 local mapid, maptype = srcUser:GetMapInfo()
7 local pvpRatio = 1
8 if maptype == PVP_MAPS then
9 pvpRatio = 0.25
10 end
11 local A = -MaxHp * 0.09 * pvpRatio
12 if srcUser:HasBuffID(90001093_HOLY_AVENGER_1_TIER_4_:MAX_STACK_0) or srcUser:HasBuffID(41732_HEAVEN_S_WRATH_:MAX_STACK_0) then
13 A = -MaxHp * 0.07 * pvpRatio
14 end
15 local HolyAtk = srcUser:GetProperty("HolyAtk")
16 if srcUser:HasBuffID(22900_APOCALYPSE_SPEAR_:MAX_STACK_0) then
17 A = -MaxHp * (0.09 - math.max(math.min(HolyAtk / 10, 0.06), 0)) * pvpRatio
18 end
19 return A
20end