
Dark Matter Trap
Place a Dark Matter Trap at the designated location, dealing Dark M.DMG equal to (DEX*(3+Base Lv./100)*(1+INT/35)*420%) to enemies within 4m per sec (affected by P.DEF) and inflicting Dark. Lasts 10s. Up to 2 traps can exist at once.
Skill Levels
• Place a Dark Matter Trap at the designated location, dealing Dark M.DMG equal to (DEX*(3+Base Lv./100)*(1+INT/35)*390%) to enemies within 4m per sec (affected by P.DEF) and inflicting Dark. Lasts 10s. Up to 2 traps can exist at once.
• Place a Dark Matter Trap at the designated location, dealing Dark M.DMG equal to (DEX*(3+Base Lv./100)*(1+INT/35)*360%) to enemies within 4m per sec (affected by P.DEF) and inflicting Dark. Lasts 10s. Up to 2 traps can exist at once.
• Place a Dark Matter Trap at the designated location, dealing Dark M.DMG equal to (DEX*(3+Base Lv./100)*(1+INT/35)*330%) to enemies within 4m per sec (affected by P.DEF) and inflicting Dark. Lasts 10s. Up to 2 traps can exist at once.
• Place a Dark Matter Trap at the designated location, dealing Dark M.DMG equal to (DEX*(3+Base Lv./100)*(1+INT/35)*300%) to enemies within 4m per sec (affected by P.DEF) and inflicting Dark. Lasts 10s. Up to 2 traps can exist at once.
Formula
1function CommonFun.calcDamage_4502(srcUser, targetUser, params, damageParam, logger)
2 local BaseLv = srcUser.BaseLv
3 local Dex = srcUser:GetProperty("Dex")
4 local Int = srcUser:GetProperty("Int")
5 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
6 local IgnoreDef = 0
7 local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
8 local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
9 if targetUser.boss or targetUser.mini then
10 IgnoreDef = IgnoreDef1
11 else
12 IgnoreDef = IgnoreDef1 + IgnoreDef2
13 end
14 if 1 <= IgnoreDef then
15 IgnoreDef = 1
16 end
17 local Def2 = targetUser:GetProperty("Def")
18 local DefPer2 = targetUser:GetProperty("DefPer")
19 local Vit2 = targetUser:GetProperty("Vit")
20 local VitPer2 = targetUser:GetProperty("VitPer")
21 local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
22 local targetDefElement = targetUser:GetProperty("DefAttr")
23 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
24 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
25 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
26 local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
27 local AttrEffect = srcUser:GetProperty("AttrEffect")
28 local bits = CommonFun.getBits(AttrEffect)
29 local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
30 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
31 local damChangePer = damageParam.damChangePer
32 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
33 local suit = 1
34 if (srcUser:HasBuffID(90000773_STARDUST_ROBE_TIER_4_:MAX_STACK_0) or srcUser:HasBuffID(42480_BLANKING_COAT_:MAX_STACK_0) or srcUser:HasBuffLayer(42480, EBUFFERLAYER_SHADOW)) and (srcUser:HasBuffID(90001005_LUNA_BROOCH_TIER_6_:MAX_STACK_0) or srcUser:HasBuffID(43000_BRIGHT_MOON_:MAX_STACK_0) or srcUser:HasBuffLayer(43000, EBUFFERLAYER_SHADOW)) then
35 suit = 1.1
36 end
37 local RefineLv2 = srcUser:GetEquipedRefineLv(2)
38 if srcUser:HasBuffID(90000777_STARDUST_ROBE_TIER_8_:MAX_STACK_0) then
39 if 10 <= RefineLv2 and RefineLv2 < 15 then
40 suit = suit + (RefineLv2 - 10) * 0.02
41 elseif 15 <= RefineLv2 then
42 suit = suit + (RefineLv2 - 10) * 0.02 + 0.05
43 end
44 end
45 local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
46 if equipRing.id == 42092 or equipRing.id == 142092 then
47 suit = suit + equipRing.refinelv * 0.02
48 end
49 local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
50 if equipRingSD.id == 42092 or equipRingSD.id == 142092 then
51 suit = suit + equipRingSD.refinelv * 0.02 * equipRingSD.quench_per / 100
52 end
53 local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
54 if srcUser:HasBuffID(90000999_LUNA_BOW_1_TIER_10_:MAX_STACK_0) then
55 if 10 <= RefineLv7 and RefineLv7 < 15 then
56 suit = suit + 0.08
57 elseif 15 <= RefineLv7 then
58 suit = suit + 0.08 + 0.12
59 end
60 end
61 if srcUser:HasBuffID(41812_MOONLIGHT_GODDESS_:MAX_STACK_0) then
62 if 5 <= RefineLv7 and RefineLv7 < 10 then
63 suit = suit + 0.05
64 elseif 10 <= RefineLv7 and RefineLv7 < 15 then
65 suit = suit + 0.05 + 0.1
66 elseif 15 <= RefineLv7 then
67 suit = suit + 0.05 + 0.1 + 0.15
68 end
69 end
70 if srcUser:HasBuffID(90004274_MOONLIGHT_GODDESS_1_TIER_5_:MAX_STACK_0) then
71 suit = suit + 0.1
72 end
73 local RefineLv5 = srcUser:GetEquipedRefineLv(5_ACCESSORY)
74 local RefineLv6 = srcUser:GetEquipedRefineLv(6_ACCESSORY)
75 local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
76 local Ring2 = srcUser:GetEquipedID(6_ACCESSORY)
77 local order1 = srcUser:getEquipLv(5)
78 local order2 = srcUser:getEquipLv(6)
79 local a = 0
80 local b = 0
81 if srcUser:HasBuffID(90001009_LUNA_BROOCH_TIER_10_:MAX_STACK_0) and (Ring1 == 44006_LUNA_BROOCH or Ring1 == 144006_LUNA_BROOCH_1) and 10 <= order1 then
82 a = RefineLv5 * 0.01
83 end
84 if srcUser:HasBuffID(90001009_LUNA_BROOCH_TIER_10_:MAX_STACK_0) and (Ring2 == 44006_LUNA_BROOCH or Ring2 == 144006_LUNA_BROOCH_1) and 10 <= order2 then
85 b = RefineLv6 * 0.01
86 end
87 local equipRing5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
88 if equipRing5.id == 44050 or equipRing5.id == 144050 then
89 a = equipRing5.refinelv * 0.02
90 end
91 local equipRingSD5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
92 if equipRingSD5.id == 44050 or equipRingSD5.id == 144050 then
93 a = equipRingSD5.refinelv * 0.02 * equipRingSD5.quench_per / 100
94 end
95 local equipRing6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
96 if equipRing6.id == 44050 or equipRing6.id == 144050 then
97 b = equipRing6.refinelv * 0.02
98 end
99 local equipRingSD6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
100 if equipRingSD6.id == 44050 or equipRingSD6.id == 144050 then
101 b = equipRingSD6.refinelv * 0.02 * equipRingSD6.quench_per / 100
102 end
103 suit = suit + a + b
104 local Angel = 1
105 if srcUser:HasBuffID(90001014_RUDRA_BOW_1_TIER_5_:MAX_STACK_0) then
106 local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
107 suit = suit + 0.02 * RefineLv
108 end
109 local Num7 = srcUser:GetRunePoint(42060_AESIR_FOR_EACH_LEVEL_OF_TRAP_RESEARCH_TRAP_DAMAGE_3)
110 local RuneDamage3 = 1 + Num7 * 0.03 * skilllv_1
111 local skilllv_trap = srcUser:GetLernedSkillLevel(1248_ASSASSIN:INSTRUMENT_EXPERT)
112 local GemValue = srcUser:GetGemValue(41011_INSTRUMENT_EXPERT_DMG_INCREASING_EFFECT_PERCENTAGE)
113 local trap = 1 + skilllv_trap * 0.02 + GemValue / 100000
114 local GemValueyj = srcUser:GetGemValue(41101_TRAP_RESEARCH_TRAP_DMG_PERCENTAGE)
115 local GemNew = srcUser:GetGemValue(41151_DARK_MATTER_TRAP_DMG_PERCENTAGE)
116 local GemDamNew = 1 + GemNew / 100000
117 local RangeDam = srcUser:GetProperty("RangeDam")
118 local A = (Dex * (3 + BaseLv / 100) * (1 + Int / 35) * damChangePer + (skilllv_1 * 20 + GemValueyj / 1000) * RuneDamage3) * DefReduc * (1 + MDamIncrease) * (1 - RefineMDamReduc) * (1 - MDamReduc2) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 * raceparam * bossparam * suit * trap * GemDamNew * (1 + RangeDam)
119 if A <= 1 then
120 return 1
121 end
122 return A
123end