Photon Cannon
Lvl: 10 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 200 Range: 6

Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 100% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.

Lvl: 9 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 190 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 95% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 8 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 180 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 90% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 7 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 170 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 85% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 6 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 160 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 80% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 5 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 150 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 75% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 4 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 140 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 70% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 3 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 130 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 65% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 2 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 120 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 60% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.
Lvl: 1 LeadSkill Physical CD: 1.5 sec Skill Delay: 1 sec SP: 110 Range: 6
• Lightbringer continuously channels a laser beam over a rectangular area in the front, dealing 55% x [Arm Cannon] Wind DMG to enemies in the range every 0.5 seconds. Lasts 3 seconds. During the channeling, Lightbringer is unable to move but able to turn. Meanwhile, The Pioneer can assemble the skill through machine learning.

Formula

function CommonFun.calcDamage_6404(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 damChangePer = damageParam.damChangePer
  local Weapon = srcUser:GetEquipedID(7_WEAPON)
  local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
  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 LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local sizeCorrection = 1
  if nil ~= CommonFun.Shape then
    if CommonFun.Shape.S == targetUser.shape then
      sizeCorrection = 1.5
    elseif CommonFun.Shape.M == targetUser.shape then
      sizeCorrection = 1
    elseif CommonFun.Shape.L == targetUser.shape then
      sizeCorrection = 0.75
    end
  end
  if nil ~= CommonFun.Shape and CommonFun.Shape.L == targetUser.shape and srcUser:HasBuffID(90004414_AVALANCHE_1_T5_:MAX_STACK_0) then
    sizeCorrection = sizeCorrection + 0.15
  end
  local huimie = 1
  local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
  if srcUser:HasBuffID(90000647_DOOM_AXE_1_R8_:MAX_STACK_0) then
    if RefineLv7 < 15 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05
    elseif 15 <= RefineLv7 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05 + 0.1
    end
  end
  if srcUser:HasBuffID(41940_SHATTERED_EARTH_:MAX_STACK_0) then
    if RefineLv7 < 15 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05
    elseif 15 <= RefineLv7 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05 + 0.1
    end
  end
  local Num = srcUser:GetRunePoint(64070_AESIR_ARM_CANNON_DAMAGE_10)
  local RuneDamage = 1 + Num * 0.1
  local Card = 1
  if srcUser:HasBuffID(53310_MECHANICAL_HOUND_CARD_:MAX_STACK_0) then
    if 10 <= RefineLv7 then
      Card = Card + 0.1
    else
      Card = Card + 0.05
    end
  end
  local GemValue = srcUser:GetGemValue(61001_ARM_CANNON_DMG_PERCENTAGE)
  local GemDam = 1 + GemValue / 100000
  local Num_dy = srcUser:GetBuffLayer(20610121_ARM_CANNON_FILLER_:MAX_STACK_0)
  Num_dy = Num_dy + 1
  local recursion = 1
  local skilllv_dg = srcUser:GetLernedSkillLevel(4308_CHRONOMANCER:RECURSION)
  local skilllv_dg2 = srcUser:GetLernedSkillLevel(4322_CHRONOMANCER:RECURSION_ENERGY)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if srcUser:HasBuffID(132431_RECURSION_ARM_CANNON_:MAX_STACK_0) and skillID == 1288_ASSASSIN:ARM_CANNON then
    recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
  end
  if skillID == 4310_CHRONOMANCER:PHOTON_CANNON then
    local skilllv_jn = srcUser:GetLernedSkillLevel(1288_ASSASSIN:ARM_CANNON)
    local skilllv_gz = srcUser:GetLernedSkillLevel(4310_CHRONOMANCER:PHOTON_CANNON)
    local Master = srcUser:GetMasterUser()
    if Master ~= nil then
      skilllv_jn = Master:GetLernedSkillLevel(1288_ASSASSIN:ARM_CANNON)
      skilllv_gz = Master:GetLernedSkillLevel(4310_CHRONOMANCER:PHOTON_CANNON)
    end
    Num_dy = 1
    local DamGem = srcUser:GetGemValue(61161_PHOTON_CANNON_DMG_PERCENTAGE)
    damChangePer = (skilllv_jn * 1.1 + 9.6) * (skilllv_gz * 0.05 + 0.5) * (1 + DamGem / 100000)
    if srcUser:HasBuffID(56460_EMP_CARD_:MAX_STACK_0) or srcUser:HasBuffID(56470_EMP_CARD_:MAX_STACK_0) then
      damChangePer = damChangePer * 1.3
    end
    if srcUser:HasBuffID(132432_RECURSION_PHOTON_CANNON_:MAX_STACK_0) then
      recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
    end
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * sizeCorrection * huimie * RuneDamage * Card * GemDam * Num_dy * recursion
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 132432,
  "BuffDesc": "Photon Cannon in Recursion",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Recursion (Photon Cannon)",
  "BuffRate": {
    "Odds": {
      "a": 4308,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "DelBuffID": [
    132430,
    132431
  ]
}

Enemy

{
  "id": 132460,
  "BuffDesc": "Reduce Wind Damage Reduc.",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Photon Cannon - Wind Damage Reduc.",
  "BuffRate": {
    "Odds": {
      "a": 4323,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "limit_layer": 6,
    "BeWindDamPer": {
      "a": 4323,
      "b": -0.01,
      "c": 0,
      "type": 8
    }
  }
}

Enemy

{
  "id": 132461,
  "BuffName": "6042",
  "BuffRate": {
    "Odds": {
      "a": 61162,
      "type": 5000
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "AttrChange",
    "MoveSpdPer": {
      "a": 0,
      "b": 0,
      "c": 61162,
      "type": 5020
    },
    "IgnoreAttrControl": 1
  }
}

Formula

{
  "CD": 1.5,
  "id": 4310010,
  "Buff": {
    "self": [
      132432
    ],
    "enemy": [
      132460,
      132461
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 4310000,
      "params": [
        100
      ]
    }
  ],
  "Icon": "skill_4310001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillDirectionRect",
  "Damage": [
    {
      "type": 6404,
      "damChangePer": 0,
      "elementparam": 1
    }
  ],
  "DescId": "##1267335",
  "NameZh": "##170025",
  "CastAct": "skill_ready8",
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "DelayCD": 1,
  "Fire_EP": 3,
  "SE_fire": "Skill/Lightbringer_guangzipao",
  "ItemCost": [
    {
      "id": 12903,
      "count": 2100
    }
  ],
  "PointAct": "reading2",
  "Pvp_buff": {
    "self": [
      132432
    ],
    "enemy": [
      132460,
      132461
    ]
  },
  "RollType": 1,
  "SkillHit": 0.3,
  "AttackAct": [
    "use_skill23"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "DCT": 3,
    "type": 4
  },
  "SkillCost": {
    "sp": 200
  },
  "SkillType": "LeadSkill",
  "Target_EP": 3,
  "DamageType": 1,
  "Logic_Param": {
    "count": 6,
    "width": 3,
    "distance": 10,
    "interval": 0.5,
    "no_select": 1,
    "range_num": 10,
    "chant_buff": [
      22000181,
      117894
    ],
    "isCountTrap": 1,
    "point_effect": "Eff_Doram_Boar_buff",
    "forward_offset": 0,
    "del_hide_as_atk": 1,
    "ignoreEffectCulling": 1,
    "fieldarea_cannot_immune": 1
  },
  "Launch_Range": 6,
  "PreCondition": {
    "ProType": 5
  },
  "ExtraMaxLevel": 1
}