Chain Lightning
Lvl: 10 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 119 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4

Deals M.Atk * 660% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 6 times

Lvl: 9 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 113 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 620% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 5 times
Lvl: 8 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 107 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 580% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 5 times
Lvl: 7 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 101 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 540% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 5 times
Lvl: 6 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 95 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 500% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 4 times
Lvl: 5 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 89 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 460% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 4 times
Lvl: 4 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 83 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 420% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 4 times
Lvl: 3 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 77 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 380% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 3 times
Lvl: 2 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 71 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 340% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 3 times
Lvl: 1 Attack Magic CD: 1.5 sec Skill Delay: 1.5 sec SP: 65 Range: 7.5 Cast Time: 4 Fixed Cast Time: 0.4
• Deals M.Atk * 300% wind M.Dmg to an enemy. If there’re other enemy units around, the chain lightning will automatically seek targets and deal damage. Each bounce increases damage dealt by 10%. Bounces up to 3 times

Aesir

• Chain Lightning - Jump Damage dealt by each bounce of [Chain Lightning] +3%
• Chain Lightning - Concussion Targets hit by [Chain Lightning] has a 20% chance to be stunned for 1s

Formula

function CommonFun.calcDamage_2306(srcUser, targetUser, params, damageParam, logger)
  local Luk = srcUser:GetProperty("Luk")
  local Int = srcUser:GetProperty("Int")
  local Vit = srcUser:GetProperty("Vit")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
  local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
  if 1 <= IgnoreMDef then
    IgnoreMDef = 1
  end
  local MRefine = srcUser:GetProperty("MRefine")
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
  local targetDefElement = targetUser:GetProperty("DefAttr")
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local MDef2 = targetUser:GetProperty("MDef")
  local MDefPer2 = targetUser:GetProperty("MDefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local Int2 = targetUser:GetProperty("Int")
  local IntPer2 = targetUser:GetProperty("IntPer")
  local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
  local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
  local damChangePer = damageParam.damChangePer
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
  local index = params.hitedIndex
  local Num1 = srcUser:GetRunePoint(24020_AESIR_DAMAGE_DEALT_BY_EACH_BOUNCE_OF_CHAIN_LIGHTNING_3)
  local Num2 = srcUser:GetRunePoint(223016_AESIR_DAMAGE_CAUSED_BY_EACH_BOUNCE_OF_LIGHTNING_BOLT_SMASH_3)
  local RuneDamage = (Num1 + Num2) * 0.03 + 1.1
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  local index_fs = srcUser:GetTargetNumLimit(1165)
  local index_xd = srcUser:GetTargetNumLimit(1913)
  if srcUser:HasBuffID(22000560_DMG_OF_CHAIN_LIGHTNING_JUMP_:MAX_STACK_0) then
    index = math.max(index_fs, index_xd)
  end
  local JumpRatio = math.pow(RuneDamage, index)
  local DamGem = srcUser:GetGemValue(21011_CHAIN_LIGHTNING_DMG_PERCENTAGE)
  local Fifth = 1
  if srcUser:HasBuffID(90004764_SCEPTER_OF_SHADOWY_WIND_1_T5_:MAX_STACK_0) then
    Fifth = Fifth + 0.1
  end
  local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * damChangePer * (1 - RefineMDamReduc) * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * JumpRatio * (1 + DamGem / 100000) * Fifth
  if skillID == 75200_:CHAIN_LIGHTNING then
    RuneDamage = 1.1
    A = math.pow(RuneDamage, index) * damChangePer * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam)
  end
  if skillID == 79134_:CHAIN_LIGHTNING then
    local Hp = targetUser:GetProperty("Hp")
    local GetNpcID = targetUser:GetNpcID()
    if GetNpcID == 310001_DOVE_MELEE_OFFENSIVE_MINION or GetNpcID == 310002_DOVE_RANGED_OFFENSIVE_MINION or GetNpcID == 310008_DOVE_MELEE_DEFENSIVE_MINION or GetNpcID == 310009_DOVE_RANGED_DEFENSIVE_MINION or GetNpcID == 310011_HAWK_MELEE_OFFENSIVE_MINION or GetNpcID == 310012_HAWK_RANGED_OFFENSIVE_MINION or GetNpcID == 310018_HAWK_MELEE_DEFENSIVE_MINION or GetNpcID == 310019_HAWK_RANGED_DEFENSIVE_MINION then
      A = A + Hp * 0.02
    end
  end
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 116832,
  "BuffDesc": "Wind Damage up",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Wind element",
  "BuffRate": {
    "Odds": {
      "a": 1163,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "WindAtk": {
      "type": 4010
    },
    "NormalAtk": {
      "a": 0,
      "b": 0,
      "c": 21112,
      "type": 5010
    },
    "extra_attr": {
      "WindAtk": {
        "a": 3103,
        "b": 0.01,
        "c": 0,
        "type": 8
      }
    },
    "NormalAtkDam": {
      "a": 0,
      "b": 0,
      "c": 21111,
      "type": 5020
    }
  },
  "BuffStateID": 116832
}

Enemy

{
  "id": 116870,
  "BuffName": "Chain Lightning (Stun)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 0,
      "c": 24030,
      "d": 20,
      "type": 3250
    }
  },
  "BuffEffect": {
    "id": [
      116871
    ],
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 116871,
  "BuffName": "Chain Lightning (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

{
  "CD": 1.5,
  "id": 1165010,
  "Buff": {
    "self": [
      116832
    ],
    "enemy": [
      116870
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 1165000,
      "params": [
        660,
        6
      ]
    }
  ],
  "Icon": "skill_1165001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 2306,
      "damChangePer": 6.6,
      "elementparam": 1
    }
  ],
  "DescId": "##170642",
  "NameZh": "##169719",
  "SE_hit": "Skill/ChainLight_hit",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "DelayCD": 1.5,
  "Fire_EP": 3,
  "SE_cast": "Skill/Magic_cast",
  "Pvp_buff": {
    "self": [
      116832
    ],
    "enemy": [
      116870
    ]
  },
  "RollType": 2,
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 0.4,
    "FCT": 4,
    "type": 2
  },
  "SE_attack": "Skill/ChainLight_attack",
  "SkillCost": {
    "sp": 119
  },
  "SkillType": "Attack",
  "Target_EP": 3,
  "DamageType": 2,
  "HitEffects": [
    {
      "type": 2,
      "duration": 1,
      "speffect": 13
    }
  ],
  "Logic_Param": {
    "range": 6,
    "range_num": 6
  },
  "Launch_Range": 7.5
}