Level 10
##3911000
Skill #3911001
Level 10
##3911000
Level 9
##3911000
Level 8
##3911000
Level 7
##3911000
Level 6
##3911000
Level 5
##3911000
Level 4
##3911000
Level 3
##3911000
Level 2
##3911000
Level 1
##3911000
Formulas & functions
Formula source
function CommonFun.calcDamage_3502(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 Hp2 = targetUser:GetProperty("Hp")
local MaxHp2 = targetUser:GetProperty("MaxHp")
local damChangePer = damageParam.damChangePer
local AttrEffect = srcUser:GetProperty("AttrEffect")
local bits = CommonFun.getBits(AttrEffect)
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 ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
if A <= 1 then
return 1
end
if bits[CommonFun.AttrEffect.Hualiduanjian] == 1 then
return A * 1.5
end
return A
endSkill JSON (Level 10)
{
"id": 3911010,
"NameZh": "灵魂腐朽",
"Level": 10,
"Icon": "skill_3911001",
"Cost": 1,
"Desc": [
{
"id": 3911000,
"params": [
2280
]
}
],
"RollType": 1,
"DamageType": 1,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 5,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 0,
"CD": 3.5,
"SkillCost": {
"1": {
"buffID": 130503,
"num": 1
},
"sp": 92
},
"DelayCD": 1,
"Lead_Type": {
"CCT": 0,
"FCT": 4,
"type": 2
},
"Logic": "SkillPointRange",
"Logic_Param": {
"addBuffCondition": {
"buffs": [
116013,
116014
],
"type": 1
},
"count": 1,
"effect": "Eff_SoulDecay,LowRange_B2",
"fieldarea_cannot_immune": 1,
"interval": 1,
"isCountTrap": 1,
"loop": false,
"no_select": 1,
"range": 3
},
"Damage": [
{
"damChangePer": 22.8,
"elementparam": 10,
"type": 3502
}
],
"DamTime": {
"type": 1,
"value": 1
},
"Buff": {
"enemy": [
130570
]
},
"Pvp_buff": {
"enemy": [
130570
]
},
"CastAct": "reading",
"AttackAct": [
"use_skill"
],
"SE_attack": "Skill/skill_magic_rotsoul_attack",
"ItemCost": [
{
"count": 1580,
"id": 12903
}
],
"ExtraMaxLevel": 0,
"description": {
"chinesesimplified": "##3911000",
"english": "##3911000",
"german": "##3911000",
"portuguese": "##3911000",
"spanish": "##3911000"
}
}