Formula

CommonFun.calcBuff_4710

function CommonFun.calcBuff_4710(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
  local srcUser_Hp = srcUser:GetProperty("Hp")
  local target_Hp = targetUser:GetProperty("Hp")
  local target_hpper = srcUser_Hp / target_Hp
  if srcUser:HasBuffID(36900_3000321_STAR_MOON_S_SWEET_DREAMS_:MAX_STACK_0) and target_hpper < 1 then
    A = 100
  end
  return A
end