Level 5
##2654000
Skill #2654001
Level 5
##2654000
Level 4
##2654000
Level 3
##2654000
Level 2
##2654000
Level 1
##2654000
Formulas & functions
Formula source
function CommonFun.calcBuff_2421(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local m = 0
if targetUser:GetNpcID() ~= 0 then
m = 1
end
local A = a * m
return A
endFormula 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.calcBuff_8120(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Luk1 = srcUser:GetProperty("Luk")
local Luk2 = targetUser:GetProperty("Luk")
local A = math.max((Luk1 - Luk2) * 0.1, 0) + a
if a == 30 then
local GemValue = srcUser:GetGemValue(205121)
A = A + GemValue / 1000
end
if targetUser:GetNpcID() ~= 0 then
A = 0
end
return A
endFormula source
function CommonFun.calcDamage_65501(srcUser, targetUser, params, damageParam, logger)
local Str = srcUser:GetProperty("Str")
local Vit = srcUser:GetProperty("Vit")
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 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 MRefine = srcUser:GetProperty("MRefine")
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 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 skilllv_zeny = srcUser:GetLernedSkillLevel(2661)
local zeny_ratio = 1
local zeny_num = srcUser:GetZenyNum()
if 0 < skilllv_zeny and targetUser:GetNpcID() == 0 then
zeny_ratio = math.min(zeny_num / 100000000, skilllv_zeny * 0.05) + 1
elseif 0 < skilllv_zeny and targetUser:GetNpcID() ~= 0 then
zeny_ratio = math.min(zeny_num / 100000000, skilllv_zeny * 0.3) + 1
end
local GemValue = srcUser:GetGemValue(205101)
local RefineLv = srcUser:GetEquipedRefineLv(7)
local RefineLv1 = srcUser:GetEquipedRefineLv(1)
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
local skilllv_ph = srcUser:GetLernedSkillLevel(2652)
local skilllv_zz = srcUser:GetLernedSkillLevel(2654)
if skillID == 2652 then
damChangePer = damChangePer * (1 + RefineLv * GemValue / 100000)
end
if skillID == 2654 then
damChangePer = (skilllv_ph + 10) * (0.8 + 0.04 * skilllv_zz) * (1 + RefineLv * GemValue / 100000)
end
if skillID == 2653 then
damChangePer = damChangePer * (1 + RefineLv1 / 10)
end
local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * zeny_ratio
if A <= 1 then
return 1
end
return A
endSkill JSON (Level 5)
{
"id": 2654005,
"NameZh": "专注模式",
"Level": 5,
"Icon": "skill_2654001",
"Cost": 1,
"Desc": [
{
"id": 2654000,
"params": [
100,
50
]
}
],
"RollType": 1,
"SkillHit": 0.5,
"DamageType": 1,
"SkillType": "LeadSkill",
"Camps": "Enemy",
"Launch_Range": 3,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 2,
"CD": 2.8,
"SkillCost": {
"sp": 60
},
"DelayCD": 1,
"Lead_Type": {
"DCT": 4.3,
"type": 4
},
"Logic": "SkillSelfRange",
"Logic_Param": {
"attackEffect_interval": 0.6,
"chant_buff": [
137312
],
"count": 7,
"del_hide_as_atk": 1,
"fieldarea_cannot_immune": 1,
"interval": 0.6,
"isCountTrap": 1,
"noMoveAction": 1,
"noReadingEffect": 1,
"no_select": 1,
"range": 4
},
"Damage": [
{
"damChangePer": 0,
"type": 65501
}
],
"DamTime": {
"type": 1,
"value": 2
},
"Buff": {
"enemy": [
137230,
137231,
137290
],
"self": [
137210,
137310
]
},
"Pvp_buff": {
"enemy": [
137230,
137231,
137290
],
"self": [
137210,
137310
]
},
"CastAct": "use_skill5",
"AttackAct": [
"use_skill"
],
"SE_cast": "Skill/Skill_Hero_Hukelian_FoucusHam_Attack_01",
"SE_hit": "common/axe_hit",
"FashionCastAct": "skill_ready8",
"description": {
"chinesesimplified": "##2654000",
"english": "##2654000",
"german": "##2654000",
"portuguese": "##2654000",
"spanish": "##2654000"
}
}