Flowing Blade
Lvl: 1 Attack Physical Range: 3

The Ninja's basic attack move, including four styles respectively inflicting Physical DMG of ATK *100%%/150%%/300%%/600%% on the enemy (The release of Flowing Blade is irrelevant to the Ninja's ASPD)

Aesir

• Flowing Blade - Quick For every 10 points of AGI, Auto Attack DMG +0.4%
• Flowing Blade - End Auto Attack final style Flowing Blade IV DMG +5%
• Flowing Blade - Foot Breaking Auto Attack slows down the enemy's Move SPD by 10% for 3 seconds

Formula

function CommonFun.calcDamage_16301(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 NormalAtk = srcUser:GetProperty("NormalAtk")
  NormalAtk = NormalAtk + 5 * Str
  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 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 RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local AttrEffect2 = srcUser:GetProperty("AttrEffect")
  local bits2 = CommonFun.getBits(AttrEffect2)
  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 BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk + NormalAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
  local damChangePer = damageParam.damChangePer
  local Agi = srcUser:GetProperty("Agi")
  local AgiRune = srcUser:GetRunePoint(163012_AESIR_FOR_EVERY_10_POINTS_OF_AGI_AUTO_ATTACK_DMG_0_4)
  local AgiDam = 1 + math.floor(Agi / 10) * AgiRune * 0.004
  local Famous = 1
  local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
  if srcUser:HasBuffID(44360_RENOWNED_BLADE_MURAMASA_:MAX_STACK_0) then
    Famous = Famous * (RefineLv7 * 0.01 + 1)
  end
  if srcUser:HasBuffID(44370_MONSTER_KNIFE_MURAMASA_:MAX_STACK_0) then
    Famous = Famous * (RefineLv7 * 0.03 + 1)
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * AgiDam * Famous
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2013_SNIPER:FLOWING_BLADE_IV then
    local Rune = srcUser:GetRunePoint(163021_AESIR_AUTO_ATTACK_FINAL_STYLE_FLOWING_BLADE_IV_DMG_5)
    A = A * (1 + Rune * 0.05)
  end
  local GemValue = srcUser:GetGemValue(163072_FLOWING_SHADOW_HEART_DMG_X_PERCENTAGE)
  if skillID == 2056_RANGER:FLOWING_SHADOW_HEART then
    local NormalAtkDam = srcUser:GetProperty("NormalAtkDam")
    local NormalAtkRes = targetUser:GetProperty("NormalAtkRes")
    local NormalEnd = 1 + NormalAtkDam - NormalAtkRes
    NormalEnd = math.max(NormalEnd, 0.1)
    A = A * math.max(GemValue / 100000, 1) * NormalEnd
    local targetid = targetUser:GetGuid()
    local distance = srcUser:GetDistance(targetid)
    if 3.5 <= distance then
      A = A * 2
    end
    local Cri = srcUser:GetProperty("Cri")
    local CriRes2 = targetUser:GetProperty("CriRes")
    local CriDamPer = srcUser:GetProperty("CriDamPer")
    local CriDefPer2 = targetUser:GetProperty("CriDefPer")
    local Rate = Cri - CriRes2
    if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
      A = ((AtkFinal * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2)) * AgiDam * Famous * math.max(GemValue / 100000, 1) * NormalEnd
      if 3.5 <= distance then
        A = A * 2
      end
      return math.max(A * (1.5 + CriDamPer - CriDefPer2), 1), CommonFun.DamageType.Crit
    end
  end
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 133116,
  "BuffName": "Flowing Blade - Defense",
  "BuffRate": {
    "Odds": {
      "a": 2078,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "AttrChange",
    "ResultDamRes": {
      "a": 2078,
      "b": 0.08,
      "c": 0,
      "type": 8
    }
  }
}

Enemy

{
  "id": 133180,
  "BuffName": "Flowing Blade Slow",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 0,
      "c": 163025,
      "d": 100,
      "type": 3250
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "AttrChange",
    "MoveSpdPer": {
      "a": 0,
      "b": 0,
      "c": 163025,
      "d": -0.1,
      "type": 3250
    }
  }
}

Formula

{
  "CD": 0,
  "id": 2010001,
  "Buff": {
    "self": [
      133116
    ],
    "enemy": [
      133180
    ]
  },
  "Cost": 0,
  "Desc": [
    {
      "id": 2010000
    }
  ],
  "Icon": "skill_10000",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 16301,
      "damChangePer": 1
    }
  ],
  "DescId": "##534021",
  "NameZh": "##316291",
  "SE_hit": "Skill/sword_hit",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Fire_EP": 3,
  "Pvp_buff": {
    "self": [
      133116
    ],
    "enemy": [
      133180
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "attack"
  ],
  "Attack_EP": 2,
  "SE_attack": "Skill/ninja_pugong1",
  "SkillType": "Attack",
  "Target_EP": 3,
  "E_Attack_On": 1,
  "Launch_Type": 1,
  "Logic_Param": {
    "noIdleAttack": 1,
    "noAttackSpeed": 1,
    "CanBeInterrupted": 1
  },
  "Launch_Range": 3,
  "AttackEffects": [
    {
      "type": 1,
      "speed": 20,
      "direction": "forward",
      "keepDistance": 1.5
    }
  ]
}