Level 10
##5710000
Skill #5714001
Level 10
##5710000
Level 9
##5710000
Level 8
##5710000
Level 7
##5710000
Level 6
##5710000
Level 5
##5710000
Level 4
##5710000
Level 3
##5710000
Level 2
##5710000
Level 1
##5710000
Formulas & functions
Formula source
function CommonFun.calcBuff_100350(srcUser, targetUser, a, b, c, d, lv, damage)
if srcUser == nil or targetUser == nil then
return 0
end
local A = 0
if targetUser:HasBuffID(1007103) then
A = 100
end
return A
endFormula source
function CommonFun.calcBuff_186(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local DarkStateAtk = srcUser:GetProperty("DarkStateAtk")
local DarkStateDef2 = targetUser:GetProperty("DarkStateDef")
local DarkStateDam = 1 + DarkStateAtk - DarkStateDef2
if DarkStateDam <= 0 then
DarkStateDam = 0
end
local StateAtk = srcUser:GetProperty("StateAtk")
local StateDef2 = targetUser:GetProperty("StateDef")
local StateDam = 1 + StateAtk - StateDef2
if StateDam <= 0 then
StateDam = 0
end
local A = (lv * a + b) * DarkStateDam * StateDam * CommonFun.calcAttrDarkRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcDamage_23(srcUser, targetUser, params, damageParam, logger)
local BaseLv = srcUser.BaseLv
local Dex = srcUser:GetProperty("Dex")
local Int = srcUser:GetProperty("Int")
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
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 Def2 = targetUser:GetProperty("Def")
local DefPer2 = targetUser:GetProperty("DefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
local skilllv_2 = srcUser:GetLernedSkillLevel(damageParam.skill2_id)
local AttrEffect = srcUser:GetProperty("AttrEffect")
local bits = CommonFun.getBits(AttrEffect)
local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
local damChangePer = damageParam.damChangePer
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
local BaseLvDamage = 0
if skillID == 202 then
local IBaseLv = srcUser.BaseLv
if srcUser:HasBuffID(42130) then
BaseLvDamage = IBaseLv * 15
end
end
local StateEffect = targetUser:GetProperty("StateEffect")
local bits2 = CommonFun.getBits(StateEffect)
local Num6 = srcUser:GetRunePoint(42070)
local RuneDamage2 = 1
if bits2[CommonFun.StateEffect.Sleep] == 1 then
RuneDamage2 = 1 + Num6 * 0.05
end
local suit = 1
if (srcUser:HasBuffID(90000773) or srcUser:HasBuffID(42480) or srcUser:HasBuffLayer(42480, EBUFFERLAYER_SHADOW)) and (srcUser:HasBuffID(90001005) or srcUser:HasBuffID(43000) or srcUser:HasBuffLayer(43000, EBUFFERLAYER_SHADOW)) then
suit = 1.1
end
local RefineLv2 = srcUser:GetEquipedRefineLv(2)
if srcUser:HasBuffID(90000777) then
if 10 <= RefineLv2 and RefineLv2 < 15 then
suit = suit + (RefineLv2 - 10) * 0.02
elseif 15 <= RefineLv2 then
suit = suit + (RefineLv2 - 10) * 0.02 + 0.05
end
end
local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
if equipRing.id == 42092 or equipRing.id == 142092 then
suit = suit + equipRing.refinelv * 0.02
end
local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
if equipRingSD.id == 42092 or equipRingSD.id == 142092 then
suit = suit + equipRingSD.refinelv * 0.02 * equipRingSD.quench_per / 100
end
local RefineLv7 = srcUser:GetEquipedRefineLv(7)
if srcUser:HasBuffID(90000999) then
if 10 <= RefineLv7 and RefineLv7 < 15 then
suit = suit + 0.08
elseif 15 <= RefineLv7 then
suit = suit + 0.08 + 0.12
end
end
if srcUser:HasBuffID(41812) then
if 5 <= RefineLv7 and RefineLv7 < 10 then
suit = suit + 0.05
elseif 10 <= RefineLv7 and RefineLv7 < 15 then
suit = suit + 0.05 + 0.1
elseif 15 <= RefineLv7 then
suit = suit + 0.05 + 0.1 + 0.15
end
end
if srcUser:HasBuffID(90004274) then
suit = suit + 0.1
end
local RefineLv5 = srcUser:GetEquipedRefineLv(5)
local RefineLv6 = srcUser:GetEquipedRefineLv(6)
local Ring1 = srcUser:GetEquipedID(5)
local Ring2 = srcUser:GetEquipedID(6)
local order1 = srcUser:getEquipLv(5)
local order2 = srcUser:getEquipLv(6)
local a = 0
local b = 0
if srcUser:HasBuffID(90001009) and (Ring1 == 44006 or Ring1 == 144006) and 10 <= order1 then
a = RefineLv5 * 0.01
end
if srcUser:HasBuffID(90001009) and (Ring2 == 44006 or Ring2 == 144006) and 10 <= order2 then
b = RefineLv6 * 0.01
end
local equipRing5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
if equipRing5.id == 44050 or equipRing5.id == 144050 then
a = equipRing5.refinelv * 0.02
end
local equipRingSD5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
if equipRingSD5.id == 44050 or equipRingSD5.id == 144050 then
a = equipRingSD5.refinelv * 0.02 * equipRingSD5.quench_per / 100
end
local equipRing6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
if equipRing6.id == 44050 or equipRing6.id == 144050 then
b = equipRing6.refinelv * 0.02
end
local equipRingSD6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
if equipRingSD6.id == 44050 or equipRingSD6.id == 144050 then
b = equipRingSD6.refinelv * 0.02 * equipRingSD6.quench_per / 100
end
suit = suit + a + b
local Angel = 1
if srcUser:HasBuffID(90001014) then
local RefineLv = srcUser:GetEquipedRefineLv(7)
suit = suit + 0.02 * RefineLv
end
local Num7 = srcUser:GetRunePoint(42060)
local RuneDamage3 = 1 + Num7 * 0.03 * skilllv_1
local skilllv_trap = srcUser:GetLernedSkillLevel(1248)
local GemValue = srcUser:GetGemValue(41011)
local trap = 1 + skilllv_trap * 0.02 + GemValue / 100000
local GemValueyj = srcUser:GetGemValue(41101)
local Leiqu = 1
if srcUser:GetFromSkill() == 815001 then
local GemValuelq = srcUser:GetGemValue(41122)
Leiqu = 1 + GemValuelq / 100000
end
local RangeDam = srcUser:GetProperty("RangeDam")
local A = (Dex * (3 + BaseLv / 100) * (1 + Int / 35) * damChangePer + (skilllv_1 * 20 + GemValueyj / 1000) * RuneDamage3) * DefReduc * (1 + MDamIncrease) * (1 - MDamReduc2) * (1 - RefineMDamReduc) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 * raceparam * bossparam * RuneDamage2 * suit * trap * Leiqu * (1 + RangeDam) + BaseLvDamage
if A <= 1 then
return 1
end
local Num1 = srcUser:GetRunePoint(42031)
local Num2 = srcUser:GetRunePoint(42032)
local Num3 = srcUser:GetRunePoint(42033)
local Num4 = srcUser:GetRunePoint(42034)
local Num5 = srcUser:GetRunePoint(42035)
local RuneDamage = Num1 * 0.1 + Num2 * 0.05 + Num3 * 0.05 + Num4 * 0.1 + Num5 * 0.05 + 1
if bits[CommonFun.AttrEffect.TriggerTrapMark] == 1 or skillID == 5714 then
return A * (1 + skilllv_2 * 0.1) * RuneDamage
end
if srcUser:HasBuffID(1007131) then
local skilllv_shenmang = srcUser:GetLernedSkillLevel(5713)
return A * (((1 + skilllv_2 * 0.1) * RuneDamage - 1) * (skilllv_shenmang * 0.1) + 1)
end
return A
endSkill JSON (Level 10)
{
"id": 5710010,
"NameZh": "深盲陷阱",
"Level": 10,
"Icon": "skill_5710001",
"Cost": 1,
"Desc": [
{
"id": 5710000,
"params": [
540
]
}
],
"RollType": 2,
"DamageType": 2,
"SkillType": "TrapSkill",
"Camps": "Enemy",
"Launch_Range": 5,
"Fire_EP": 6,
"Target_EP": 3,
"Attack_EP": 3,
"CD": 6,
"SkillCost": {
"sp": 75
},
"DelayCD": 1.5,
"Logic": "SkillPointRange",
"Logic_Param": {
"duration": 30,
"fire_skill": 5714010,
"hit": 1,
"isNpcTrap": 1,
"isTimeTrap": 1,
"max_count": 2,
"no_select": 1,
"npcid": 806614,
"range": 1,
"skillid": 5717001,
"suspend_can_immune": 1
},
"Damage": [
{
"damChangePer": 5.4,
"elementparam": 7,
"skill1_id": 142,
"skill2_id": 125,
"type": 23
}
],
"DamTime": {
"type": 1,
"value": 3
},
"CastAct": "reading",
"AttackAct": [
"use_magic"
],
"SE_attack": "Skill/sfx_skill_master_blind_trap_attack_01",
"SE_hit": "Skill/sfx_skill_master_blind_trap_hit_01",
"description": {
"chinesesimplified": "##5710000",
"english": "##5710000",
"german": "##5710000",
"portuguese": "##5710000",
"spanish": "##5710000"
}
}