
Electrify Field
Wind Element Damage has a 100% chance to make the enemy enter [Electrify Status], and will cause Wind True Dmg (M.Atk x100%) to all friends around every second. [Electrify Field] lasts 5 seconds.
Skill Levels
• Wind Element Damage has a 80% chance to make the enemy enter [Electrify Status], and will cause Wind True Dmg (M.Atk x80%) to all friends around every second. [Electrify Field] lasts 5 seconds.
• Wind Element Damage has a 60% chance to make the enemy enter [Electrify Status], and will cause Wind True Dmg (M.Atk x60%) to all friends around every second. [Electrify Field] lasts 5 seconds.
• Wind Element Damage has a 40% chance to make the enemy enter [Electrify Status], and will cause Wind True Dmg (M.Atk x40%) to all friends around every second. [Electrify Field] lasts 5 seconds.
• Wind Element Damage has a 20% chance to make the enemy enter [Electrify Status], and will cause Wind True Dmg (M.Atk x20%) to all friends around every second. [Electrify Field] lasts 5 seconds.
Formula
1function CommonFun.calcBuff_661(srcUser, targetUser, a, b, c, d, lv, damage)
2 local Int = srcUser:GetProperty("Int")
3 local Vit = srcUser:GetProperty("Vit")
4 local MAtk = srcUser:GetProperty("MAtk")
5 local MAtkPer = srcUser:GetProperty("MAtkPer")
6 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
7 local MRefine = srcUser:GetProperty("MRefine")
8 local srcAtkElement = 1
9 local targetDefElement = targetUser:GetProperty("DefAttr")
10 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
11 local BaseMAtk = Int + math.floor(Int * Int / 100)
12 local ElementRate = CommonFun.GetElementRate(srcUser, srcAtkElement, targetUser, targetDefElement)
13 if (srcUser:HasBuffID(69650_8608_:MAX_STACK_0) or srcUser:HasBuffID(71090_10658_:MAX_STACK_0)) and 1 < ElementRate then
14 ElementRate = ElementRate * 1.1
15 end
16 if targetUser:HasBuffID(49130_DIVINE_HYMN_CARVER_:MAX_STACK_0) then
17 ElementRate = math.min(ElementRate, 1)
18 end
19 if srcUser:HasBuffID(49210_7892_:MAX_STACK_0) then
20 ElementRate = ElementRate + 0.15
21 end
22 if srcUser:HasBuffID(77480_48193_VICTORY_SWALLOW_1_:MAX_STACK_0) then
23 ElementRate = ElementRate + 0.1
24 end
25 if srcUser:HasBuffID(59630_DINGGUI_SYNERGY_CARD_:MAX_STACK_0) and (srcAtkElement == 3 or srcAtkElement == 4) then
26 ElementRate = ElementRate + 0.1
27 end
28 if srcUser:HasBuffID(59670_RESENTFUL_THOR_SOL_CARD_:MAX_STACK_0) and srcAtkElement == 1 then
29 ElementRate = ElementRate + 0.1
30 end
31 if srcUser:HasBuffID(700680_3013155_TWNPC_REMOVE_WINGS_:MAX_STACK_0) then
32 local RefineLv11 = srcUser:GetEquipedRefineLv(11)
33 ElementRate = ElementRate + 0.01 * RefineLv11
34 end
35 local NpcParam = CommonFun.NpcParam(srcUser, targetUser, params, damageParam, logger)
36 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * ElementRate * NpcParam
37 local skilllv = srcUser:GetLernedSkillLevel(3102_WHITESMITH:ELECTRIFY_FIELD)
38 local skilllv2 = srcUser:GetLernedSkillLevel(3120_WHITESMITH:ELECTRIFY_FIELD_INCREASE)
39 local MDamSpike = srcUser:GetProperty("MDamSpike_MPEN")
40 local WindAtk = srcUser:GetProperty("WindAtk")
41 local A = -(MAtkFinal * (1 + MDamSpike) + MRefine) * skilllv * 0.2 * (1 + WindAtk) * (1 - RefineMDamReduc) * (1 + MDamIncrease) * (1 + skilllv2 * 0.05)
42 if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
43 A = -1
44 end
45 if targetUser:DamageAlways1() then
46 A = -1
47 end
48 return A
49end