
Sonic Blow
Cuts the target quickly, dealing (Atk700%) Dmg to an enemy. Has a 40% chance to stun it.
Skill Levels
• Cuts the target quickly, dealing (Atk680%) Dmg to an enemy. Has a 38% chance to stun it.
• Cuts the target quickly, dealing (Atk660%) Dmg to an enemy. Has a 36% chance to stun it.
• Cuts the target quickly, dealing (Atk640%) Dmg to an enemy. Has a 34% chance to stun it.
• Cuts the target quickly, dealing (Atk620%) Dmg to an enemy. Has a 32% chance to stun it.
• Cuts the target quickly, dealing (Atk600%) Dmg to an enemy. Has a 30% chance to stun it.
• Cuts the target quickly, dealing (Atk560%) Dmg to an enemy. Has a 28% chance to stun it.
• Cuts the target quickly, dealing (Atk520%) Dmg to an enemy. Has a 26% chance to stun it.
• Cuts the target quickly, dealing (Atk480%) Dmg to an enemy. Has a 24% chance to stun it.
• Cuts the target quickly, dealing (Atk440%) Dmg to an enemy. Has a 22% chance to stun it.
• Cuts the target quickly, dealing (Atk400%) Dmg to an enemy. Has a 20% chance to stun it.
• Cuts the target quickly, dealing (Atk360%) Dmg to an enemy. Has a 18% chance to stun it.
• Cuts the target quickly, dealing (Atk320%) Dmg to an enemy. Has a 16% chance to stun it.
• Cuts the target quickly, dealing (Atk280%) Dmg to an enemy. Has a 14% chance to stun it.
• Cuts the target quickly, dealing (Atk240%) Dmg to an enemy. Has a 12% chance to stun it.
Formula
1function CommonFun.calcDamage_3103(srcUser, targetUser, params, damageParam, logger)
2 local Str = srcUser:GetProperty("Str")
3 local Dex = srcUser:GetProperty("Dex")
4 local Luk = srcUser:GetProperty("Luk")
5 local Atk = srcUser:GetProperty("Atk")
6 local AtkPer = srcUser:GetProperty("AtkPer")
7 local DamIncrease = srcUser:GetProperty("DamIncrease")
8 local IgnoreDef = 0
9 local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
10 local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
11 if targetUser.boss or targetUser.mini then
12 IgnoreDef = IgnoreDef1
13 else
14 IgnoreDef = IgnoreDef1 + IgnoreDef2
15 end
16 if 1 <= IgnoreDef then
17 IgnoreDef = 1
18 end
19 local Refine = srcUser:GetProperty("Refine")
20 local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
21 local AttrEffect = srcUser:GetProperty("AttrEffect")
22 local bits = CommonFun.getBits(AttrEffect)
23 local Def2 = targetUser:GetProperty("Def")
24 local DefPer2 = targetUser:GetProperty("DefPer")
25 local Vit2 = targetUser:GetProperty("Vit")
26 local VitPer2 = targetUser:GetProperty("VitPer")
27 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
28 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
29 local damChangePer = damageParam.damChangePer
30 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
31 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
32 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
33 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
34 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
35 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
36 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
37 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
38 local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
39 local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
40 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
41 local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
42 local BaseLvDamage = 0
43 local IBaseLv = srcUser.BaseLv
44 if srcUser:HasBuffID(42160_RESOLUTE_BLADE_:MAX_STACK_0) then
45 BaseLvDamage = IBaseLv * 20
46 end
47 if srcUser:HasBuffID(42170_GALO_KATAR_:MAX_STACK_0) then
48 BaseLvDamage = IBaseLv * 20
49 end
50 local card = 1
51 if srcUser:HasBuffID(80012130_STEM_WORM_CARD_DEPOSITE_:MAX_STACK_0) then
52 card = 1.05
53 end
54 local shamo = 0
55 local RefineLv1 = srcUser:GetEquipedRefineLv(7_WEAPON)
56 if srcUser:HasBuffID(90001293_SANDSTORM_TIER_4_:MAX_STACK_0) and 15 <= RefineLv1 then
57 shamo = 1
58 end
59 if srcUser:HasBuffID(41850_DESERT_STORM_:MAX_STACK_0) and 15 <= RefineLv1 then
60 shamo = 1
61 end
62 local Wing = srcUser:GetEquipedID(11)
63 local RefineLv = srcUser:GetEquipedRefineLv(11)
64 local time = 1
65 if Wing == 45249 then
66 time = 1 + RefineLv / 100
67 end
68 local Num1 = srcUser:GetRunePoint(33010_AESIR_SONIC_BLOW_AND_CROSS_IMPACT_IGNORE_3_OF_THE_TARGET_S_DEF)
69 local RuneDamage = Num1 * 0.03
70 local DefReduc2 = math.min(1, DefReduc + RuneDamage)
71 local szGem = srcUser:GetGemValue(31051_CROSS_IMPACT_DMG_PERCENTAGE)
72 local ytGem = srcUser:GetGemValue(31052_SONIC_BLOW_DMG_PERCENTAGE)
73 local A = ((AtkFinal * DefReduc2 * (1 - DamReduc2) + Refine) * (damChangePer + card + shamo) * (1 + skilllv_1 * 0.2) * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * time * card * (1 + ytGem / 100000) + BaseLvDamage
74 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
75 if skillID == 1111_ARCANE_MASTER:CROSS_IMPACT then
76 local skilllv_yintou = srcUser:GetLernedSkillLevel(181_KNIGHT:SONIC_BLOW)
77 local skilllv_shizi = srcUser:GetLernedSkillLevel(1111_ARCANE_MASTER:CROSS_IMPACT)
78 local damChangePer = 2.4
79 if skilllv_yintou <= 10 then
80 damChangePer = 2 + 0.4 * skilllv_yintou
81 elseif 10 < skilllv_yintou then
82 damChangePer = 6 + 0.2 * (skilllv_yintou - 10)
83 end
84 if srcUser:HasBuffID(53380_DARK_THIEF_CARD_:MAX_STACK_0) then
85 card = card + 0.15
86 end
87 if srcUser:HasBuffID(116043_DARK_ILLUSION_:MAX_STACK_0) and srcUser:HasBuffID(90004314_DESERT_STORM_1_TIER_5_:MAX_STACK_0) then
88 card = card + 0.15
89 end
90 A = ((AtkFinal * DefReduc2 * (1 - DamReduc2) + Refine) * (damChangePer + card + shamo) * (1 + skilllv_1 * 0.2) * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * time * card * (1 + 0.2 * skilllv_shizi) * (1 + ytGem / 100000) * (1 + szGem / 100000)
91 end
92 if A <= 1 then
93 return 1
94 end
95 if bits[CommonFun.AttrEffect.Hualiduanjian] == 1 then
96 return A * 1.5
97 end
98 return A
99end