Level 10
##4310000
Skill #327007
Targets an adventurer and fires in a fan-shape area towards that direction
Level 10
##4310000
Level 9
##4310000
Level 8
##4310000
Level 7
##4310000
Level 6
##4310000
Level 5
##4310000
Level 4
##4310000
Level 3
##4310000
Level 2
##4310000
Level 1
##4310000
Formulas & functions
Formula source
function CommonFun.calcBuff_5000(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Value = srcUser:GetGemValue(a)
local A = 0
if Value ~= 0 then
A = 100
end
return A
endFormula source
-- Lua source unavailable --Formula source
function CommonFun.calcDamage_6404(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 Weapon = srcUser:GetEquipedID(7)
local RefineLv = srcUser:GetEquipedRefineLv(7)
local Master = CommonFun.getNpcMasterUser(srcUser)
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 sizeCorrection = 1
if nil ~= CommonFun.Shape then
if CommonFun.Shape.S == targetUser.shape then
sizeCorrection = 1.5
elseif CommonFun.Shape.M == targetUser.shape then
sizeCorrection = 1
elseif CommonFun.Shape.L == targetUser.shape then
sizeCorrection = 1
end
end
if nil ~= CommonFun.Shape and CommonFun.Shape.L == targetUser.shape and srcUser:HasBuffID(90004414) then
sizeCorrection = sizeCorrection + 0.15
end
local huimie = 1
local RefineLv7 = srcUser:GetEquipedRefineLv(7)
if srcUser:HasBuffID(90000647) then
if RefineLv7 < 15 then
huimie = RefineLv7 * 0.02 + 1 + 0.05
elseif 15 <= RefineLv7 then
huimie = RefineLv7 * 0.02 + 1 + 0.05 + 0.1
end
end
if srcUser:HasBuffID(41940) then
if RefineLv7 < 15 then
huimie = RefineLv7 * 0.02 + 1 + 0.05
elseif 15 <= RefineLv7 then
huimie = RefineLv7 * 0.02 + 1 + 0.05 + 0.1
end
end
local Num = srcUser:GetRunePoint(64070)
local RuneDamage = 1 + Num * 0.1
local Card = 1
if srcUser:HasBuffID(53310) then
if 10 <= RefineLv7 then
Card = Card + 0.1
else
Card = Card + 0.05
end
end
local GemValue = srcUser:GetGemValue(61001)
local GemDam = 1 + GemValue / 100000
if Master ~= nil and srcUser:GetNpcID() ~= 0 then
RefineLv7 = Master:GetEquipedRefineLv(7)
if Master:HasBuffID(90000647) then
if RefineLv7 < 15 then
huimie = RefineLv7 * 0.02 + 1 + 0.05
elseif 15 <= RefineLv7 then
huimie = RefineLv7 * 0.02 + 1 + 0.05 + 0.1
end
end
if Master:HasBuffID(41940) then
if RefineLv7 < 15 then
huimie = RefineLv7 * 0.02 + 1 + 0.05
elseif 15 <= RefineLv7 then
huimie = RefineLv7 * 0.02 + 1 + 0.05 + 0.1
end
end
Num = Master:GetRunePoint(64070)
RuneDamage = 1 + Num * 0.1
if Master:HasBuffID(53310) then
if 10 <= RefineLv7 then
Card = Card + 0.1
else
Card = Card + 0.05
end
end
end
local Num_dy = srcUser:GetBuffLayer(20610121)
Num_dy = Num_dy + 1
local recursion = 1
local skilllv_dg = srcUser:GetLernedSkillLevel(4308)
local skilllv_dg2 = srcUser:GetLernedSkillLevel(4322)
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if srcUser:HasBuffID(132431) and (skillID == 1288 or skillID == 5604) then
recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
end
local Master = srcUser:GetMasterUser()
if skillID == 4310 then
local skilllv_jn = srcUser:GetLernedSkillLevel(1288)
local skilllv_gz = srcUser:GetLernedSkillLevel(4310)
if Master ~= nil then
skilllv_jn = Master:GetLernedSkillLevel(1288)
skilllv_gz = Master:GetLernedSkillLevel(4310)
end
Num_dy = 1
local DamGem = srcUser:GetGemValue(61161)
damChangePer = (skilllv_jn * 1.1 + 9.6) * (skilllv_gz * 0.05 + 0.5) * (1 + DamGem / 100000)
if srcUser:HasBuffID(56460) or srcUser:HasBuffID(56470) then
damChangePer = damChangePer * 1.3
end
if srcUser:HasBuffID(132432) then
recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
end
end
local guozai = 1
local fromid = targetUser:GetBuffFromID(1006050)
local guid = srcUser:GetGuid()
local skilllv_guozai = srcUser:GetLernedSkillLevel(5603)
if Master ~= nil then
skilllv_guozai = Master:GetLernedSkillLevel(5603)
end
local layer_guozai = targetUser:GetBuffLayer(1006050)
if 1 <= layer_guozai then
guozai = 1 + skilllv_guozai * 0.01 * layer_guozai
end
local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * sizeCorrection * huimie * RuneDamage * Card * GemDam * Num_dy * recursion * guozai
if A <= 1 then
return 1
end
return A
endSkill JSON (Level 10)
{
"id": 4310010,
"NameZh": "光子炮",
"Level": 10,
"Icon": "skill_4310001",
"Cost": 1,
"Desc": [
{
"id": 4310000,
"params": [
100
]
}
],
"RollType": 1,
"SkillHit": 0.3,
"DamageType": 1,
"SkillType": "LeadSkill",
"Camps": "Enemy",
"Launch_Range": 6,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 3,
"CD": 1.5,
"SkillCost": {
"sp": 200
},
"DelayCD": 1,
"PreCondition": {
"ProType": 5
},
"Lead_Type": {
"DCT": 3,
"type": 4
},
"Logic": "SkillDirectionRect",
"Logic_Param": {
"chant_buff": [
22000181,
117894
],
"count": 6,
"del_hide_as_atk": 1,
"distance": 10,
"fieldarea_cannot_immune": 1,
"forward_offset": 0,
"ignoreEffectCulling": 1,
"interval": 0.5,
"isCountTrap": 1,
"no_select": 1,
"point_effect": "Eff_Doram_Boar_buff",
"range_num": 10,
"width": 3
},
"Damage": [
{
"damChangePer": 0,
"elementparam": 1,
"type": 6404
}
],
"DamTime": {
"type": 1,
"value": 3
},
"Buff": {
"enemy": [
132460,
132461
],
"self": [
132432
]
},
"Pvp_buff": {
"enemy": [
132460,
132461
],
"self": [
132432
]
},
"CastAct": "skill_ready8",
"AttackAct": [
"use_skill23"
],
"SE_fire": "Skill/Lightbringer_guangzipao",
"ItemCost": [
{
"count": 2100,
"id": 12903
}
],
"ExtraMaxLevel": 1,
"PointAct": "reading2",
"description": {
"chinesesimplified": "##4310000",
"english": "##4310000",
"german": "##4310000",
"portuguese": "##4310000",
"spanish": "##4310000"
}
}