Level 10
##4207000
Skill #4207001
Level 10
##4207000
Level 9
##4207000
Level 8
##4207000
Level 7
##4207000
Level 6
##4207000
Level 5
##4207000
Level 4
##4207000
Level 3
##4207000
Level 2
##4207000
Level 1
##4207000
Formulas & functions
Formula source
function CommonFun.calcDamage_9204(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)
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 481 then
local Num1 = srcUser:GetRunePoint(90060)
local RuneDamage1 = Num1 * 0.2 + 1
A = A * RuneDamage1
end
if skillID == 483 then
local Num2 = srcUser:GetRunePoint(90100)
local RuneDamage2 = Num2 * 0.1 + 1
A = A * RuneDamage2
end
if skillID == 487 and srcUser:HasBuffID(40672) then
A = A * 1.5
end
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": 4207010,
"NameZh": "幻影风暴",
"Level": 10,
"Icon": "skill_4207001",
"Cost": 1,
"Desc": [
{
"id": 4207000,
"params": [
3600
]
}
],
"RollType": 1,
"DamageType": 1,
"SkillType": "SummonShadow",
"Camps": "Enemy",
"Launch_Range": 5,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 2,
"CD": 4,
"SkillCost": {
"sp": 30
},
"DelayCD": 1.5,
"Lead_Type": {
"CCT": 0,
"FCT": 4,
"type": 2
},
"Logic": "SkillPointRange",
"Logic_Param": {
"buffIDs": [
132025,
132050,
132110,
90004955
],
"count": 1,
"effect": "Eff_CrowsStorm_floor,LowRange_B2",
"interval": 1,
"isCountTrap": 1,
"loop": false,
"no_select": 1,
"num_type": 13,
"range": 4,
"shadowLevel": {
"4204001": [
580101,
8
],
"4204002": [
580102,
9
],
"4204003": [
580103,
10
],
"4204004": [
580104,
11
],
"4204005": [
580105,
12
]
}
},
"Damage": [
{
"damChangePer": 36,
"type": 9204
}
],
"DamTime": {
"type": 1,
"value": 3
},
"CastAct": "reading",
"AttackAct": [
"use_skill"
],
"SE_attack": "Skill/Phantom_qunyafengbao",
"ItemCost": [
{
"count": 1580,
"id": 12903
}
],
"ExtraMaxLevel": 0,
"description": {
"chinesesimplified": "##4207000",
"english": "##4207000",
"german": "##4207000",
"portuguese": "##4207000",
"spanish": "##4207000"
}
}