Formula

CommonFun.calcBuff_7060

function CommonFun.calcBuff_7060(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local Bufflv = srcUser:GetBuffLayer(174852_5279_:MAX_STACK_4)
  local A = 0
  if 1 <= Bufflv and Bufflv < 2 then
    A = MaxHp * 0.3
  elseif 2 <= Bufflv and Bufflv < 3 then
    A = MaxHp * 0.66
  elseif 3 <= Bufflv then
    A = MaxHp * 1
  end
  return -A
end