Ultra Lightning
Lvl: 10 Attack Physical CD: 12 sec SP: 300 Range: 10

Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*4800% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path.

[Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once.

When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1600% per sec to enemies within 4m.

Lvl: 9 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*4500% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1500% per sec to enemies within 4m.
Lvl: 8 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*4200% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1400% per sec to enemies within 4m.
Lvl: 7 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*3900% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1300% per sec to enemies within 4m.
Lvl: 6 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*3600% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1200% per sec to enemies within 4m.
Lvl: 5 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*3300% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1100% per sec to enemies within 4m.
Lvl: 4 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*3000% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*1000% per sec to enemies within 4m.
Lvl: 3 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*2700% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*900% per sec to enemies within 4m.
Lvl: 2 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*2400% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*800% per sec to enemies within 4m.
Lvl: 1 Attack Physical CD: 12 sec SP: 300 Range: 10
• Thor throws [Mjölnir] at the specified area, dealing Wind P.DMG equal to P.ATK*2100% to all enemies along the path. If the skill is used again in 5s, Thor will turn into a ball lightning and dash at the area, dealing DMG one more time to enemies along the path. [Mjölnir] detonates all [electric charges] of enemies along the path. Each [electric charge] causes HP Loss equal to 50% DMG once. When [Mjölnir] is on the ground, it deals Wind P.DMG equal to P.ATK*700% per sec to enemies within 4m.

Inherit Skills

Formula

function CommonFun.calcDamage_70501(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 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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2795_SAINT:TRIAL_OF_STORM then
    local Hiding = targetUser:GetProperty("Hiding")
    local Num = targetUser:GetBuffLayer(138361_ELECTRIC_CHARGE_COUNT_:MAX_STACK_5)
    local GemValue = srcUser:GetGemValue(210101_EACH_ELECTRIC_CHARGE_ON_THE_TARGET_INCREASES_DMG_OF_TRIAL_OF_STORM_BY_PERCENTAGE)
    damChangePer = damChangePer * (1 + Num * GemValue / 100000)
    if Hiding == 1 then
      damChangePer = damChangePer * 2
    end
  end
  if skillID == 2805_SAINT:ULTRA_LIGHTNING then
    local skilllv_cj = srcUser:GetLernedSkillLevel(2798_SAINT:ULTRA_LIGHTNING)
    local GemValue = srcUser:GetGemValue(210121_ULTRA_LIGHTNING_DEALS_PERCENTAGE_MORE_DMG_WHEN_REMAINING_ON_THE_GROUND)
    damChangePer = (skilllv_cj + 6) * (1 + GemValue / 100000)
  end
  local Quake = 1
  if skillID == 2804_SAINT:MJOLNIR then
    local skilllv_tx = srcUser:GetLernedSkillLevel(2791_SAINT:THOR_S_ARRIVAL)
    damChangePer = skilllv_tx * 5
    local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
    if srcUser:HasBuffID(23030_23_:MAX_STACK_0) then
      Quake = RefineLv7 * 0.01 + Quake
    end
    if srcUser:HasBuffID(23040_23_:MAX_STACK_0) then
      Quake = RefineLv7 * 0.03 + Quake
    end
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * Quake
  local skilllv_bwd = srcUser:GetLernedSkillLevel(2799_SAINT:POWER_FLUCTUATION)
  local random_min = 50 + Luk / 10
  local random_max = skilllv_bwd * 10 + 200 + Str / 10
  local ratio = CommonFun.RandomRange(random_min, math.max(random_min, random_max), srcUser:GetRandom())
  if 0 < skilllv_bwd then
    A = A * ratio / 100
    if 300 < ratio then
      if srcUser.isServerCall then
        srcUser:AddBuff(138301_POWER_FLUCTUATION_3X_:MAX_STACK_0, targetUser:GetGuid())
      end
    elseif 200 < ratio and srcUser.isServerCall then
      srcUser:AddBuff(138300_POWER_FLUCTUATION_2X_:MAX_STACK_0, targetUser:GetGuid())
    end
  end
  if A <= 1 then
    return 1
  end
  return A
end

Enemy 8570

function CommonFun.calcBuff_8570(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Num = targetUser:GetBuffLayer(138361_ELECTRIC_CHARGE_COUNT_:MAX_STACK_5)
  local A = -0.5 * Num * damage
  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  if A < -2100000000 then
    A = -2100000000
  end
  return A
end

Self

{
  "id": 138400,
  "BuffName": "23",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "ReplaceSkill",
    "newid": 2803,
    "oldid": 2798
  }
}

Self

{
  "id": 138404,
  "BuffName": "23",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "ids": [
      2798
    ],
    "type": "DynamicSkillConfig",
    "value": "skill_2803001",
    "configType": 2
  }
}
Ultra Lightning

Self

{
  "id": 138405,
  "BuffName": "23",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "id": 2805001,
    "Odds": 100,
    "type": "UseSkill",
    "IsActive": 0,
    "use_mark_point": 1
  }
}

Enemy

{
  "id": 138401,
  "BuffName": "23",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "Hp": {
      "type": 8570
    },
    "type": "HSPChange",
    "end_extra_buff": [
      138402
    ]
  },
  "BuffStateID": 138401
}

Enemy

{
  "id": 138402,
  "BuffName": "23",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "DelBuff",
    "layer": [
      {
        "id": 138361,
        "layer": 5
      }
    ]
  }
}

Formula

{
  "CD": 12,
  "id": 2798010,
  "Buff": {
    "self": [
      138400,
      138404,
      138405
    ],
    "enemy": [
      138401
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2798000,
      "params": [
        4800,
        1600
      ]
    }
  ],
  "Icon": "skill_2798001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillMeToPointRect",
  "Damage": [
    {
      "type": 70501,
      "damChangePer": 48,
      "elementparam": 1
    }
  ],
  "DescId": "##3361693",
  "NameZh": "##3352379",
  "SE_hit": "Skill/sfx_skill_thor_millionlightning_hammer_hit_01",
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "DelayCD": 0,
  "Fire_EP": 3,
  "Pvp_buff": {
    "self": [
      138400,
      138404,
      138405
    ],
    "enemy": [
      138401
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill4"
  ],
  "Attack_EP": 3,
  "SE_attack": "Skill/sfx_skill_thor_millionlightning_hammer_attack_01",
  "SkillCost": {
    "sp": 300
  },
  "SkillType": "Attack",
  "Target_EP": 3,
  "DamageType": 5,
  "Logic_Param": {
    "emit": {
      "type": 1,
      "speed": 24,
      "effect": "sfx_thor_cj_chui_bullet_prf"
    },
    "range": 3,
    "width": 3,
    "effect": "sfx_thor_cj_floor_prf",
    "sub_fire": false,
    "no_select": 1,
    "range_num": 15,
    "nomovedelay": 1,
    "ShowIndicator": 1,
    "no_skill_delay": 1,
    "behind_distance": 3,
    "need_mark_point": 1,
    "force_service_damage": 1
  },
  "Launch_Range": 10,
  "AutoCondition": [
    {
      "type": 2
    }
  ],
  "FashionAttackAct": "throwing",
  "AutoCondition_Groove": 1
}