
Divine Destruction Slash + Lightning Bolt Smash
Lvl: 1
Attack
Magic
CD: 30 sec
Skill Delay: 1 sec
SP: 1000
Range: 7.5
Cast Time: 8
Release Divine Destruction Slash on a single enemy target. If there are other enemy units near the target, automatically seek targets and inflict DMG. Each hop reduces DMG by (15- Lightning Bolt Smash skill level *0.5)%% for up to 6 hops
Formula
function CommonFun.calcDamage_2305(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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 1941_SNIPER:DIVINE_DESTRUCTION_SLASH_LIGHTNING_BOLT_SMASH then
local skilllv_smz = srcUser:GetLernedSkillLevel(1915_HUNTER:RAGNA_BLADE)
local skilllv_ljp = srcUser:GetLernedSkillLevel(1913_HUNTER:DIG_VAULT)
local index = params.hitedIndex
local JumpRatio = math.pow(0.85 + skilllv_ljp * 0.005, index - 1)
damChangePer = (6.8 + 0.7 * skilllv_smz) * JumpRatio
end
local GemValue_nian = srcUser:GetGemValue(21162_ELEMENTAL_EDDY_CAN_CAUSE_THOUGHT_DMG_WITH_THE_SAME_MULTIPLYING_POWER_ATTACHED_DMG_PERCENTAGE)
if skillID == 1164_THIEF:TETRA_VORTEX and damChangePer == 0 and GemValue_nian ~= 0 then
local skill_ys = srcUser:GetLernedSkillLevel(1164_THIEF:TETRA_VORTEX)
damChangePer = (0.7 * skill_ys + 6.8) * (1 + GemValue_nian / 100000)
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)
local Num1 = srcUser:GetRunePoint(24010_AESIR_TETRA_VORTEX_DAMAGE_4)
local Num2 = srcUser:GetRunePoint(223015_AESIR_DIVINE_DESTRUCTION_SLASH_DMG_4)
local RuneDamage = 1 + (Num1 + Num2) * 0.04
local GemValue = srcUser:GetGemValue(21031_TETRA_VORTEX_DEALS_AN_EXTRA_PERCENTAGE_DMG_TO_TARGETS_WITH_THE_ARMOR_ELEMENT_OTHER_THAN_WIND_EARTH_WATER_AND_FIRE)
local GemDam = 1
if targetDefElement ~= 1 and targetDefElement ~= 2 and targetDefElement ~= 3 and targetDefElement ~= 4 then
GemDam = 1 + GemValue / 100000
end
A = A * RuneDamage * GemDam
if A <= 1 then
return 1
end
return A
end
Enemy 6
function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local MaxHp = targetUser:GetProperty("MaxHp")
local A = MaxHp * (a + c) + b
if 0 < A or a == 0 then
return A
end
if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
return 0
end
if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
local Vit = srcUser:GetProperty("Vit")
local MAtk = srcUser:GetProperty("MAtk")
local MAtkPer = srcUser:GetProperty("MAtkPer")
local Refine = srcUser:GetProperty("Refine")
local MRefine = srcUser:GetProperty("MRefine")
local Def2 = targetUser:GetProperty("Def")
local DefPer2 = targetUser:GetProperty("DefPer")
local MDef2 = targetUser:GetProperty("MDef")
local MDefPer2 = targetUser:GetProperty("MDefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local Int2 = targetUser:GetProperty("Int")
local IntPer2 = targetUser:GetProperty("IntPer")
local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
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 MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local IgnoreDef = srcUser:GetProperty("IgnoreDef")
if 1 <= IgnoreDef then
IgnoreDef = 1
end
local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
if 1 <= IgnoreMDef then
IgnoreMDef = 1
end
local raceparam = 1
local srcRace = srcUser.race
local targetRace = targetUser.race
if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
targetRace = 3
end
if srcUser:HasBuffID(139411_TWO_FACE_DEMON_KING_DEMON_:MAX_STACK_0) then
srcRace = 3
end
if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
targetRace = 2
end
if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
srcRace = 2
end
if nil == CommonFun.RaceProps[targetRace] then
return 0
end
if nil == CommonFun.RaceProps[srcRace] then
return 0
end
local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
local raceparam = 1 + raceInc - raceRed
if raceparam <= 0.1 then
raceparam = 0.1
end
local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
if MAtkFinal <= AtkFinal then
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
else
local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
end
end
local AttrFunction = srcUser:GetProperty("AttrFunction")
local bitfunc = CommonFun.getBits(AttrFunction)
if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
A = 0
end
if CommonFun.checkAttrFunctionMiss(targetUser, srcUser) then
A = 0
end
if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
A = 0
end
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
return A
end
Enemy
{
"id": 116844,
"BuffName": "(Forced) Burn Effect",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 140
}
},
"BuffEffect": {
"id": [
116845,
116846
],
"type": "AddBuff"
}
}
Enemy
{
"id": 116841,
"BuffName": "(Forced) Bleed Effect",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 185
}
},
"BuffEffect": {
"id": [
116842,
116843
],
"type": "AddBuff"
}
}
Enemy
{
"id": 116848,
"BuffName": "(Forced) Freeze Effect [Freeze]",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 110
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"Freeze": 1,
"DefAttr": 3,
"AttrEffect": [
3,
4
],
"StateEffect": "5_Freeze",
"NoEffectMove": 3,
"force_status": 1,
"atk_def_priority": 1
},
"BuffStateID": 85070
}
Enemy
{
"id": 116849,
"BuffName": "Tetra Vortex (Adds All Abnormal Statuses)",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"c": 20210050,
"type": 5040
}
},
"BuffEffect": {
"id": [
116841,
116844,
116847,
116848
],
"type": "AddBuff"
}
}
Enemy
{
"id": 186060,
"BuffName": "Divine Destruction Slash (Compound Magic)",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"c": 20210050,
"type": 5190
}
},
"BuffEffect": {
"id": [
300020,
300030,
300040,
300050
],
"type": "AddBuff",
"random": 1
}
}
Enemy
{
"id": 116847,
"BuffName": "(Forced) Stun Effect [Stun - Calculated Chance]",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 130
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"NoAct": 1,
"AttrEffect": [
3,
4
],
"StateEffect": "4_Dizzy",
"force_status": 1
},
"BuffStateID": 80010
}
Enemy
{
"id": 116843,
"BuffName": "HP Loss Effect",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"Hp": {
"a": -0.005,
"b": -5,
"type": 6
},
"type": "HpReduce",
"delHpPer": 0.2,
"StateEffect": "2_Blood",
"force_status": 1
}
}
Enemy
{
"id": 116846,
"BuffName": "Burning Bleeding Effect",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"Hp": {
"a": -0.01,
"b": -5,
"type": 6
},
"type": "HpReduce",
"delHpPer": 0.2,
"StateEffect": "3_Burn",
"force_status": 1
}
}
Enemy
{
"id": 300020,
"BuffName": "Bleed Effect",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 185
}
},
"BuffEffect": {
"id": [
300021,
300022
],
"type": "AddBuff"
}
}
Enemy
{
"id": 300022,
"BuffName": "HP Loss Effect",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"Hp": {
"a": -0.005,
"b": -5,
"type": 6
},
"type": "HpReduce",
"delHpPer": 0.2,
"StateEffect": "2_Blood"
}
}
Enemy
{
"id": 300030,
"BuffName": "Burning Effect",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 140
}
},
"BuffEffect": {
"id": [
300031,
300032
],
"type": "AddBuff"
}
}
Enemy
{
"id": 300032,
"BuffName": "Burning Bleeding Effect",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"Hp": {
"a": -0.01,
"b": -5,
"type": 6
},
"type": "HpReduce",
"delHpPer": 0.2,
"StateEffect": "3_Burn"
}
}
Enemy
{
"id": 116842,
"BuffName": "Bleeding Effect [HP Loss]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"AtkPer": -0.25,
"SkillASPD": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "2_Blood",
"force_status": 1
},
"BuffStateID": 120032
}
Enemy
{
"id": 116845,
"BuffName": "Burning State Effect [Burning]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"MDefPer": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "3_Burn",
"BeFireDamPer": -0.25,
"force_status": 1
},
"BuffStateID": 95410
}
Enemy
{
"id": 300021,
"BuffName": "Bleeding Effect [HP Loss]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"AtkPer": -0.25,
"SkillASPD": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "2_Blood"
},
"BuffStateID": 120032
}
Enemy
{
"id": 300031,
"BuffName": "Burning State Effect [Burning]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"MDefPer": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "3_Burn",
"BeFireDamPer": -0.25
},
"BuffStateID": 95410
}
Enemy
{
"id": 300040,
"BuffName": "Stun Effect [Stun - Calculated Chance]",
"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
}
Enemy
{
"id": 300050,
"BuffName": "Freezing Effect [Freeze]",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"type": 110
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"Freeze": 1,
"DefAttr": 3,
"AttrEffect": [
3,
4
],
"StateEffect": "5_Freeze",
"NoEffectMove": 3,
"atk_def_priority": 1
},
"BuffStateID": 85070
}
Formula
{
"CD": 30,
"id": 1941001,
"Buff": {
"enemy": [
186060,
116849
]
},
"Cost": 0,
"Desc": [
{
"id": 1941000
}
],
"Icon": "skill_1936001",
"Camps": "Enemy",
"Logic": "SkillLockedTarget",
"Damage": [
{
"type": 2305,
"damChangePer": 1,
"elementparam": 1
},
{
"type": 2305,
"damChangePer": 1,
"elementparam": 2
},
{
"type": 2305,
"damChangePer": 1,
"elementparam": 3
},
{
"type": 2305,
"damChangePer": 1,
"elementparam": 4
}
],
"DescId": "##534003",
"NameZh": "##533101",
"SE_hit": "Skill/EleVortex_hit",
"DamTime": {
"type": 1,
"value": 4
},
"DelayCD": 1,
"Fire_EP": 3,
"SE_cast": "Common/Magic_cast",
"Pvp_buff": {
"enemy": [
186060,
116849
]
},
"RollType": 2,
"AttackAct": [
"use_skill5_Glove"
],
"Attack_EP": 2,
"Lead_Type": {
"CCT": 0,
"FCT": 8,
"type": 2
},
"SE_attack": "Skill/xiudou_shenmiezhan",
"SkillCost": {
"sp": 1000
},
"SkillType": "Attack",
"Target_EP": 3,
"DamageType": 2,
"HitEffects": [
{
"type": 2,
"duration": 1,
"speffect": 28
}
],
"Logic_Param": {
"range": 6,
"range_num": 6,
"combine_skill": [
1915,
1913
]
},
"Launch_Range": 7.5
}