Scatter Shot
Lvl: 1 LeadSkill Physical Range: 10

Deals (Atk100%) Dmg to the target

Formula

function CommonFun.calcDamage_127(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 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 BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (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 damChangePer1 = damageParam.damChangePer1
  local MaxHp2 = targetUser:GetProperty("MaxHp")
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2) + MaxHp2 * damChangePer1 / 100
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 23051_:RULING_TRIAL and srcUser.isServerCall then
    srcUser:AddBuff(156800_RULING_TRIAL_MARK_:MAX_STACK_0, targetUser:GetGuid())
    srcUser:AddBuff(156801_RULING_TRIAL_KILL_:MAX_STACK_0, targetUser:GetGuid())
  end
  return A
end

Enemy

{
  "id": 156590,
  "BuffName": "Scatter Shot (Stun)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 100,
      "type": 130
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "StatusChange",
    "NoAct": 1,
    "AttrEffect": [
      3,
      4
    ],
    "StateEffect": "4_Dizzy"
  },
  "BuffStateID": 80010
}

Formula

{
  "id": 25204001,
  "Buff": {
    "enemy": [
      156590
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 10000,
      "params": [
        100
      ]
    }
  ],
  "Icon": "skill_10000",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillDirectionRect",
  "Damage": [
    {
      "type": 127,
      "damChangePer": 5.6,
      "damChangePer1": 5
    }
  ],
  "DescId": "##170630",
  "NameZh": "##1191045",
  "CastAct": "use_skill2",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Fire_EP": 3,
  "SE_cast": "Skill/sfx_skill_bart_multishot_attack",
  "SE_fire": "Skill/sfx_skill_bart_multishot_attack",
  "Pvp_buff": {
    "enemy": [
      156590
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill2"
  ],
  "Attack_EP": 2,
  "Lead_Type": {
    "DCT": 4,
    "type": 4
  },
  "SE_attack": "Skill/sfx_skill_bart_multishot_attack",
  "SkillType": "LeadSkill",
  "Target_EP": 3,
  "Logic_Param": {
    "count": 8,
    "width": 4,
    "distance": 10,
    "interval": 0.5,
    "no_select": 1,
    "range_num": 10,
    "isCountTrap": 1,
    "point_effect": "Eff_Doram_Boar_buff",
    "forward_offset": 0,
    "del_hide_as_atk": 1,
    "ignoreEffectCulling": 1,
    "fieldarea_cannot_immune": 1
  },
  "Launch_Range": 10
}