Formula

CommonFun.calcBuff_3900

function CommonFun.calcBuff_3900(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local HpPerRatio = 1
  local Hp = targetUser:GetProperty("Hp")
  local MaxHp = targetUser:GetProperty("MaxHp")
  if Hp < 0.8 * MaxHp then
    HpPerRatio = 2
  end
  local A = -0.5 * HpPerRatio
  return A
end