Thump
Lvl: 1 Attack Physical CD: 10 sec SP: 1 Range: 2

Deals (ATK 200%) points of Phy. DMG to surrounding enemies within 2m, knocking them back and stunning them. Gains the Endure effect for 1 sec at the same time.

Formula

function CommonFun.calcDamage_21(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local DamIncrease = srcUser:GetProperty("DamIncrease")
  local IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  if targetUser.boss or targetUser.mini then
    IgnoreDef = IgnoreDef1
  else
    IgnoreDef = IgnoreDef1 + IgnoreDef2
  end
  if 1 <= IgnoreDef then
    IgnoreDef = 1
  end
  local Refine = srcUser:GetProperty("Refine")
  local AttrEffect = targetUser:GetProperty("AttrEffect")
  local bits = CommonFun.getBits(AttrEffect)
  local Def2 = targetUser:GetProperty("Def")
  local DefPer2 = targetUser:GetProperty("DefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local damChangePer = damageParam.damChangePer
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  local skilllv_1 = srcUser:GetLernedSkillLevel(127_KNIGHT:ELEMENTAL_ARROW)
  local atk_add = 0
  if 10 < skilllv_1 and (skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST) then
    atk_add = Dex * ((skilllv_1 - 10) * 0.5)
  end
  local NormalAtk = 0
  if skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST then
    local NormalAtkAttr = srcUser:GetProperty("NormalAtk")
    NormalAtk = NormalAtkAttr + 3 * Dex
  end
  local SpAtk = 0
  if srcUser:HasBuffID(131096_ATTACK_REDUCES_HP_AND_SP_:MAX_STACK_0) and (skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST) then
    local Sp = srcUser:GetProperty("Sp")
    SpAtk = Sp
  end
  local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
  local AtkFinal = (((Atk - BaseAtk + NormalAtk + atk_add) * (1 + AtkPer) + SpAtk) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local targetid = targetUser:GetGuid()
  local distance = srcUser:GetDistance(targetid)
  local skilllv_1 = srcUser:GetLernedSkillLevel(133_KNIGHT:VULTURE_S_EYE)
  local DisDam = 1
  if 10 < skilllv_1 then
    DisDam = 1 + distance / 7.5 * (skilllv_1 - 10) * 0.1
    if srcUser:HasBuffID(131080_UNLIMITED_STARS_:MAX_STACK_0) then
      DisDam = 1 + (skilllv_1 - 10) * 0.1
    end
    DisDam = math.min(DisDam, 2)
  end
  local profressionID = srcUser:GetProfressionID()
  if srcUser:HasBuffID(56712_11925_:MAX_STACK_0) and (profressionID == 42_HUNTER or profressionID == 43_SNIPER or profressionID == 44_RANGER or profressionID == 45_STELLAR_HUNTER) then
    DisDam = DisDam + distance / 7.5 * 0.1
  end
  local Injured = 1
  if bits[CommonFun.AttrEffect.NormalSkillDam] == 1 then
    Injured = 1.3
  end
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
  if skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST then
    local guid = srcUser:GetGuid()
    local Debuff_Layer_1 = targetUser:GetBuffLayerByIDAndFromID(96082, guid)
    local Debuff_Layer_2 = targetUser:GetBuffLayerByIDAndFromID(96083, guid)
    local sw_dam = math.max(Debuff_Layer_1, Debuff_Layer_2) * 0.06 + 1
    A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * DisDam * Injured * sw_dam
  end
  if skillID == 404_RUNE_KNIGHT:FEAR_BREEZE_AUTO_ATTACK then
    local GemValue = srcUser:GetGemValue(41131_FEAR_BREEZE_DAMAGE_PERCENTAGE)
    A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) * (1 + GemValue / 100000) - Vit2 * (1 + VitPer2)
    local CriDamPer = srcUser:GetProperty("CriDamPer")
    local CriDefPer2 = targetUser:GetProperty("CriDefPer")
    local GemRate = srcUser:GetGemValue(41132_FEAR_BREEZE_HAS_A_PERCENTAGE_CHANCE_TO_CRITICALLY_HIT_AND_DEALS_DAMAGE_BASED_ON_YOUR_CRIT_DMG)
    local Rate = GemRate / 1000
    if srcUser:HasBuffID(90004254_OVERLORD_CRAB_BOW_1_T5_:MAX_STACK_0) and srcUser:HasBuffID(131080_UNLIMITED_STARS_:MAX_STACK_0) then
      Rate = Rate + 30
    end
    if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
      A = (AtkFinal * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) * (1 + GemValue / 100000) - Vit2 * (1 + VitPer2)
      return A * (1.5 + CriDamPer - CriDefPer2), CommonFun.DamageType.Crit
    end
  end
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 120069,
  "BuffName": "Thump (Endure)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange",
    "NoStiff": 1,
    "NoEffectMove": 1
  }
}

Enemy

{
  "id": 96160,
  "BuffDesc": "Stunning: disable movement and attack",
  "BuffIcon": "skillbuff_212001",
  "BuffName": "Hammerfall [Stunning]",
  "BuffRate": {
    "Odds": {
      "a": 10,
      "b": 20,
      "type": 130
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "StatusChange",
    "NoAct": 1,
    "AttrEffect": [
      3,
      4
    ],
    "StateEffect": "4_Dizzy"
  },
  "BuffStateID": 80010
}

Formula

{
  "CD": 10,
  "id": 71001,
  "Buff": {
    "self": [
      120069
    ],
    "enemy": [
      96160
    ]
  },
  "Cost": 0,
  "Desc": [
    {
      "id": 71000,
      "params": [
        200
      ]
    }
  ],
  "Icon": "skill_12001",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillSelfRange",
  "Damage": [
    {
      "type": 21,
      "damChangePer": 2
    }
  ],
  "DescId": "##1244698",
  "NameZh": "##118311",
  "SE_hit": "Skill/Arrow_hit",
  "CastAct": "skill_ready",
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "Fire_EP": 3,
  "SE_fire": "Skill/Arrow_fire",
  "Pvp_buff": {
    "self": [
      120069
    ],
    "enemy": [
      96160
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "whack"
  ],
  "Attack_EP": 2,
  "SE_attack": "Skill/Arrow_attack",
  "SkillCost": {
    "sp": 1
  },
  "SkillType": "Attack",
  "Target_EP": 3,
  "HitEffects": [
    {
      "type": 1,
      "speed": 15,
      "distance": 4,
      "direction": "back"
    }
  ],
  "Logic_Param": {
    "range": 4,
    "ignoreHit": 1
  },
  "Launch_Range": 2
}