Ocean Breath
Lvl: 1 Attack Magic Range: 6

Launches the force of the sea within a 3-meter radius, dealing severe damage. The more players there are in the attack range, the less damage each player takes.

Formula

function CommonFun.calcDamage_8030(srcUser, targetUser, params, damageParam, logger)
  local Int = srcUser:GetProperty("Int")
  local Vit = srcUser:GetProperty("Vit")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
  local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
  if 1 <= IgnoreMDef then
    IgnoreMDef = 1
  end
  local MRefine = srcUser:GetProperty("MRefine")
  local RangeDam = srcUser:GetProperty("RangeDam")
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
  local targetDefElement = targetUser:GetProperty("DefAttr")
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local MDef2 = targetUser:GetProperty("MDef")
  local MDefPer2 = targetUser:GetProperty("MDefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local Int2 = targetUser:GetProperty("Int")
  local IntPer2 = targetUser:GetProperty("IntPer")
  local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
  local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
  local damChangePer = damageParam.damChangePer
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
  local MaxHp = srcUser:GetProperty("MaxHp")
  local Hp = srcUser:GetProperty("Hp")
  local HpPerRatio = 1
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  local count = params.hitedCount
  local CountDam = 1 / count ^ 0.6
  local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * damChangePer * (1 - RefineMDamReduc) * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * CountDam
  if A <= 1 then
    return 1
  end
  return A
end

Formula

{
  "id": 72030001,
  "Cost": 0,
  "Desc": [
    {
      "id": 72030001
    }
  ],
  "Icon": "skill_1304001",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 8030,
      "damChangePer": 10,
      "elementparam": 3
    }
  ],
  "DescId": "##171362",
  "NameZh": "##169750",
  "SE_hit": "Skill/DragonBreath_hit",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "Fire_EP": 3,
  "SE_cast": "Common/Magic_cast",
  "RollType": 2,
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 3,
  "SkillType": "Attack",
  "Target_EP": 2,
  "Logic_Param": {
    "loop": false,
    "count": 1,
    "range": 3,
    "effect": "DragonBreath_attack,LowRange_B2",
    "interval": 1,
    "no_select": 1,
    "isCountTrap": 1
  },
  "Launch_Range": 6
}