Skill #24368001

Supreme Sword - Heavenstrike

Specifies one Adventurer. After charging, rushes to them and deals significant P.DMG which can be divided among enemies within a certain distance from the target. If no other enemy is in the area, kills the target and bans them from revival on the spot for some time.

Level 1

##24368001

Cost 1 | Attack

ID 24368001

Formulas & functions

CommonFun links

绝剑·天诛Lv 1 | damage

Formula source

function CommonFun.calcDamage_8053(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Int = srcUser:GetProperty("Int")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local DamIncrease = srcUser:GetProperty("DamIncrease")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  local IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  local WeaponType = srcUser:GetEquipedWeaponType()
  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 MRefine = srcUser:GetProperty("MRefine")
  local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
  local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
  if 1 <= IgnoreMDef then
    IgnoreMDef = 1
  end
  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 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 count = params.hitedCount
  if count <= 1 then
    count = 1
  end
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) * elementparam * elementparam2 + BaseMAtk) * raceparam * bossparam * bossparam2
  local A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)) / count
  if A <= 1 then
    A = 1
  end
  return A
end

Skill JSON (Level 1)

{
  "id": 24368001,
  "NameZh": "绝剑·天诛",
  "Level": 1,
  "Icon": "skill_2740001",
  "Cost": 1,
  "Desc": [
    {
      "id": 24368001
    }
  ],
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 20,
  "Fire_EP": 3,
  "Target_EP": 2,
  "Attack_EP": 2,
  "Lead_Type": {
    "ReadyTime": 2,
    "type": 1
  },
  "Logic": "SkillTargetPoint",
  "Logic_Param": {
    "HideInShadowViel": 1,
    "forward_offset": 0,
    "immune_taunt": 1,
    "must_debuff": 1,
    "noReadingEffect": 1,
    "no_select": 1,
    "notcontroled": 1,
    "pre_attack": {
      "acceleration": 20,
      "action": "use_skill4",
      "initSpeed": 100,
      "no_track": 1,
      "speedLimit": 200,
      "targetPos": 1,
      "type": 4
    },
    "range": 3,
    "range_num": 10
  },
  "Damage": [
    {
      "damChangePer": 15,
      "type": 8053
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 5
  },
  "Buff": {
    "buff_when_single": [
      11691,
      11692
    ]
  },
  "Pvp_buff": {
    "buff_when_single": [
      11691,
      11692
    ]
  },
  "CastAct": "skill_ready4",
  "AttackAct": [
    "use_skill4"
  ],
  "CastLock_EP": 2,
  "SE_cast": "Skill/sfx_skill_prince_burining_body_act_01",
  "SE_attack": "Skill/sfx_skill_prince_ burining_body_hit_01",
  "description": {
    "chinesesimplified": "##24368001",
    "english": "##24368001",
    "german": "##24368001",
    "portuguese": "##24368001",
    "spanish": "##24368001"
  }
}