SkillAuto Attack
Auto Attack
Lvl: 1
Attack
Phsyical
Range: 1.5
Deals (Atk100%) Dmg to a target and reduces their Move Spd
Lvl: 1
Attack
Phsyical
Range: 1.5
Deals (Atk100%) Dmg to a target and reduces their Move Spd

Formula
function CommonFun.calcDamage_19(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 Num1 = srcUser:GetRunePoint(11022_AESIR_SWORDSMAN_S_ATK_BONUS_INCREASES_BY_3_AUTO_ATTACK_INCREASES_BY)
  local Num2 = srcUser:GetRunePoint(11023)
  local Num3 = srcUser:GetRunePoint(11024)
  local Num4 = srcUser:GetRunePoint(12004)
  local Num5 = srcUser:GetRunePoint(12011)
  local RuneDamage = (Num1 + Num2 + Num3 + Num4 + Num5) * 0.03
  local AtkPer1 = srcUser:GetProperty("AtkPer")
  local AtkPer = AtkPer1 + RuneDamage
  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 Agi = srcUser:GetProperty("Agi")
  local WeaponType = srcUser:GetEquipedWeaponType()
  local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
  local skilllv_2 = srcUser:GetLernedSkillLevel(damageParam.skill2_id)
  local Refine = srcUser:GetProperty("Refine")
  local StateEffect = targetUser:GetProperty("StateEffect")
  local bits = CommonFun.getBits(StateEffect)
  local Weapon = srcUser:GetEquipedID(7_WEAPON)
  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 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 SkillRealDam = 0
  if skilllv_1 <= 5 then
    SkillRealDam = skilllv_1 * 20
  elseif 5 < skilllv_1 and skilllv_1 <= 10 then
    SkillRealDam = 100 + math.floor(Agi / 5) * ((skilllv_1 - 5) * 0.5 + 0.5)
  else
    SkillRealDam = 100 + (skilllv_1 - 10) * 20 + math.floor(Agi / 5) * 3 + Luk * 2
  end
  local AtkSpdAdd = 0
  local skilllv_3 = srcUser:GetLernedSkillLevel(22_:ONE_HAND_QUICKEN)
  if srcUser:HasBuffID(80082_INCREASE_SWORD_S_ATTACK_SPD_PEAK_:MAX_STACK_0) and 10 < skilllv_3 then
    AtkSpdAdd = (skilllv_3 - 10) * 120
  end
  local skilllv_mfzr = srcUser:GetLernedSkillLevel(3002_:ABYSS_CONTRACT)
  local Sp = srcUser:GetProperty("Sp")
  local Opening = srcUser:GetSkillOptByOption(17)
  local MagicAtk = 0
  if 0 < skilllv_mfzr and Opening == 0 then
    MagicAtk = Sp * skilllv_mfzr * 0.2
  end
  local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk + AtkSpdAdd + NormalAtk - BaseAtk + MagicAtk) * (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 Weapon = srcUser:GetEquipedID(7_WEAPON)
  local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
  local HolyEquip = 1
  if Weapon == 40319_HOLY_AVENGER_1 or Weapon == 140319_HOLY_AVENGER_2 then
    HolyEquip = 1 + 0.05 * RefineLv
  end
  if Weapon == 40360_HEAVENS_1 or Weapon == 140360_HEAVENS_2 then
    HolyEquip = 1 + 0.05 * RefineLv
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine + SkillRealDam) * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HolyEquip
  if WeaponType == 250 and CommonFun.IsInRate(skilllv_2 * 5, srcUser:GetRandom()) then
    return A * 2, CommonFun.DamageType.ErLianJi
  end
  if bits[CommonFun.StateEffect.Dizzy] == 1 and (Weapon == 40322_MURAMASA_1 or Weapon == 140322_MURAMASA_2) then
    return A * 1.5
  end
  if A <= 1 then
    return 1
  end
  return A
end
Buff Raw
Enemy
{
  "id": 104170,
  "BuffDesc": "Decrease moving speed",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Amistr attack slow",
  "BuffRate": {
    "Odds": 100
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "MoveSpdPer": -0.2,
    "limit_layer": 4
  }
}
Raw
{
  "id": 461001,
  "Buff": {
    "enemy": [
      104170
    ]
  },
  "Cost": 0,
  "Desc": [
    {
      "id": 10001,
      "params": [
        100
      ]
    }
  ],
  "Icon": "skill_10000",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 19,
      "skill1_id": 29,
      "skill2_id": 179
    }
  ],
  "DescId": "##171153",
  "NameZh": "##149793",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Fire_EP": 3,
  "Pvp_buff": {
    "enemy": [
      104170
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "attack"
  ],
  "Attack_EP": 3,
  "SkillType": "Attack",
  "Target_EP": 3,
  "Launch_Type": 1,
  "Launch_Range": 1.5
}