
Electric Shock
Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *1080%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
Aesir Effects
Skill Levels
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *1040%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *1000%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *960%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *920%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *880%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 10% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *820%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 9% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *760%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 8% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *700%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 7% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *640%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 6% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *580%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 5% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *520%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 4% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *460%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 3% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *400%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 2% of their Max SP per second for 5s. Can have up to 2 traps at a time.
• Places a trap which deals (Dex* (3 +BaseLv/100) * (1 +Int/35) *340%) wind M.Dmg based on Def to the enemy that triggers it and cause the target to lose 1% of their Max SP per second for 5s. Can have up to 2 traps at a time.
Formula
1function CommonFun.calcDamage_4203(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 skilllv_2 = srcUser:GetLernedSkillLevel(damageParam.skill2_id)
28 local AttrEffect = srcUser:GetProperty("AttrEffect")
29 local bits = CommonFun.getBits(AttrEffect)
30 local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
31 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
32 local damChangePer = damageParam.damChangePer
33 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
34 local suit = 1
35 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
36 suit = 1.1
37 end
38 local RefineLv2 = srcUser:GetEquipedRefineLv(2)
39 if srcUser:HasBuffID(90000777_STARDUST_ROBE_TIER_8_:MAX_STACK_0) then
40 if 10 <= RefineLv2 and RefineLv2 < 15 then
41 suit = suit + (RefineLv2 - 10) * 0.02
42 elseif 15 <= RefineLv2 then
43 suit = suit + (RefineLv2 - 10) * 0.02 + 0.05
44 end
45 end
46 local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
47 if equipRing.id == 42092 or equipRing.id == 142092 then
48 suit = suit + equipRing.refinelv * 0.02
49 end
50 local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
51 if equipRingSD.id == 42092 or equipRingSD.id == 142092 then
52 suit = suit + equipRingSD.refinelv * 0.02 * equipRingSD.quench_per / 100
53 end
54 local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
55 if srcUser:HasBuffID(90000999_LUNA_BOW_1_TIER_10_:MAX_STACK_0) then
56 if 10 <= RefineLv7 and RefineLv7 < 15 then
57 suit = suit + 0.08
58 elseif 15 <= RefineLv7 then
59 suit = suit + 0.08 + 0.12
60 end
61 end
62 if srcUser:HasBuffID(41812_MOONLIGHT_GODDESS_:MAX_STACK_0) then
63 if 5 <= RefineLv7 and RefineLv7 < 10 then
64 suit = suit + 0.05
65 elseif 10 <= RefineLv7 and RefineLv7 < 15 then
66 suit = suit + 0.05 + 0.1
67 elseif 15 <= RefineLv7 then
68 suit = suit + 0.05 + 0.1 + 0.15
69 end
70 end
71 if srcUser:HasBuffID(90004274_MOONLIGHT_GODDESS_1_TIER_5_:MAX_STACK_0) then
72 suit = suit + 0.1
73 end
74 local RefineLv5 = srcUser:GetEquipedRefineLv(5_ACCESSORY)
75 local RefineLv6 = srcUser:GetEquipedRefineLv(6_ACCESSORY)
76 local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
77 local Ring2 = srcUser:GetEquipedID(6_ACCESSORY)
78 local order1 = srcUser:getEquipLv(5)
79 local order2 = srcUser:getEquipLv(6)
80 local a = 0
81 local b = 0
82 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
83 a = RefineLv5 * 0.01
84 end
85 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
86 b = RefineLv6 * 0.01
87 end
88 local equipRing5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
89 if equipRing5.id == 44050 or equipRing5.id == 144050 then
90 a = equipRing5.refinelv * 0.02
91 end
92 local equipRingSD5 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY1)
93 if equipRingSD5.id == 44050 or equipRingSD5.id == 144050 then
94 a = equipRingSD5.refinelv * 0.02 * equipRingSD5.quench_per / 100
95 end
96 local equipRing6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
97 if equipRing6.id == 44050 or equipRing6.id == 144050 then
98 b = equipRing6.refinelv * 0.02
99 end
100 local equipRingSD6 = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ACCESSORY2)
101 if equipRingSD6.id == 44050 or equipRingSD6.id == 144050 then
102 b = equipRingSD6.refinelv * 0.02 * equipRingSD6.quench_per / 100
103 end
104 suit = suit + a + b
105 local Angel = 1
106 if srcUser:HasBuffID(90001014_RUDRA_BOW_1_TIER_5_:MAX_STACK_0) then
107 local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
108 suit = suit + 0.02 * RefineLv
109 end
110 local Num7 = srcUser:GetRunePoint(42060_AESIR_FOR_EACH_LEVEL_OF_TRAP_RESEARCH_TRAP_DAMAGE_3)
111 local RuneDamage3 = 1 + Num7 * 0.03 * skilllv_1
112 local skilllv_trap = srcUser:GetLernedSkillLevel(1248_ASSASSIN:INSTRUMENT_EXPERT)
113 local GemValue = srcUser:GetGemValue(41011_INSTRUMENT_EXPERT_DMG_INCREASING_EFFECT_PERCENTAGE)
114 local trap = 1 + skilllv_trap * 0.02 + GemValue / 100000
115 local NumDj = srcUser:GetRunePoint(44080_AESIR_ELECTRIC_SHOCK_DAMAGE_8)
116 local RuneDj = 1 + NumDj * 0.08
117 local GemValueyj = srcUser:GetGemValue(41101_TRAP_RESEARCH_TRAP_DMG_PERCENTAGE)
118 local Leiqu = 1
119 if srcUser:GetFromSkill() == 815001 then
120 local GemValuelq = srcUser:GetGemValue(41122_MINEFIELD_TRAP_DAMAGE_PERCENTAGE)
121 Leiqu = 1 + GemValuelq / 100000
122 end
123 local Atk = srcUser:GetProperty("Atk")
124 local AtkPer = srcUser:GetProperty("AtkPer")
125 local Atk_add = 0
126 if srcUser:HasBuffID(56480_INTELLIGENCE_COLLAPSE_CARD_:MAX_STACK_0) or srcUser:HasBuffID(56490_INTELLIGENCE_COLLAPSE_CARD_:MAX_STACK_0) then
127 Atk_add = Atk * (1 + AtkPer) * 0.2
128 end
129 local A = ((Dex * (3 + BaseLv / 100) * (1 + Int / 35) + Atk_add) * 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 * RuneDj * Leiqu
130 if A <= 1 then
131 return 1
132 end
133 local Num1 = srcUser:GetRunePoint(42031_AESIR_WHEN_DETONATOR_IS_TRAPPED_TRAPS_DEAL_10_DAMAGE)
134 local Num2 = srcUser:GetRunePoint(42032_AESIR_WHEN_DETONATOR_IS_TRAPPED_TRAPS_DEAL_5_DAMAGE)
135 local Num3 = srcUser:GetRunePoint(42033)
136 local Num4 = srcUser:GetRunePoint(42034)
137 local Num5 = srcUser:GetRunePoint(42035)
138 local RuneDamage = Num1 * 0.1 + Num2 * 0.05 + Num3 * 0.05 + Num4 * 0.1 + Num5 * 0.05 + 1
139 if bits[CommonFun.AttrEffect.TriggerTrapMark] == 1 then
140 return A * (1 + skilllv_2 * 0.1) * RuneDamage
141 end
142 return A
143end