Homing Missile (Fire on Full Power)
Lvl: 1 Attack Physical Range: 20

Deals (Atk100%) Dmg to the target

Formula

function CommonFun.calcDamage_17301(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 + 3 * Dex
  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 BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 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 A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2005_SNIPER:HOMING_MISSILE then
    local GemValue = srcUser:GetGemValue(173052_HOMING_MISSILE_DMG_PERCENTAGE)
    local GemDam = 1 + GemValue / 100000
    A = A * GemDam
  end
  if skillID == 2200_STELLAR_HUNTER:STORM_GUST or skillID == 2199_STELLAR_HUNTER:THUMP then
    local WeaponType = srcUser:GetEquipedWeaponType()
    if WeaponType == 320 then
      A = A * 2
    end
  end
  if skillID == 2250_STELLAR_HUNTER:FIRE_RAIN or skillID == 818_HIGH_WIZARD:FIRE_RAIN then
    local GemValue = srcUser:GetGemValue(173161_FIRE_RAIN_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if A <= 1 then
    return 1
  end
  return A
end

Formula

{
  "CD": 0,
  "id": 2006001,
  "Cost": 0,
  "Desc": [
    {
      "id": 173000,
      "params": [
        100
      ]
    }
  ],
  "Icon": "skill_10000",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 17301,
      "damChangePer": 5
    }
  ],
  "DescId": "##170630",
  "NameZh": "##3448395",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Fire_EP": 3,
  "RollType": 1,
  "AttackAct": [
    "attack"
  ],
  "Attack_EP": 2,
  "SkillType": "Attack",
  "Target_EP": 3,
  "Logic_Param": {
    "emit": {
      "type": 2,
      "effect": "gunman_zzd_bullet,gunman_zzd_bullet",
      "duration": 0.4,
      "multi_target": true,
      "controlfactor": [
        -1.5,
        2
      ]
    },
    "passive_fire": 1,
    "noNeedLearned": 1,
    "no_buff_attack": 1
  },
  "Launch_Range": 20,
  "Fire_EP_Weapon": 1
}