
Cross Slash
Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *2060%. A Sword must be equipped
Skill Levels
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1920%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1780%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1640%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1500%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1360%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1220%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *1080%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *940%. A Sword must be equipped
• Perform a cross cutting on a single enemy unit, inflicting Physical DMG of ATK *800%. A Sword must be equipped
Formula
1function CommonFun.calcDamage_16302(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 Def2 = targetUser:GetProperty("Def")
21 local DefPer2 = targetUser:GetProperty("DefPer")
22 local Vit2 = targetUser:GetProperty("Vit")
23 local VitPer2 = targetUser:GetProperty("VitPer")
24 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
25 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
26 local AttrEffect2 = srcUser:GetProperty("AttrEffect")
27 local bits2 = CommonFun.getBits(AttrEffect2)
28 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
29 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
30 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
31 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
32 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
33 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
34 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
35 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
36 local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
37 local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
38 local DefReduc = CommonFun.CalcDef(srcUser, targetUser, params)
39 local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
40 local damChangePer = damageParam.damChangePer
41 local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
42 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
43 if skillID == 2024_SNIPER:SHADOW_STEPPER then
44 local Hiding = targetUser:GetProperty("Hiding")
45 local GemValue = srcUser:GetGemValue(163151_SHADOW_STEPPER_DMG_PERCENTAGE)
46 local GemDam = 1 + GemValue / 100000
47 A = A * GemDam
48 if Hiding == 1 then
49 A = A * 2
50 end
51 end
52 if skillID == 2018_SNIPER:SHADOW_WARRIOR then
53 local skilll = srcUser:GetLernedSkillLevel(2039_SNIPER:SHADOW_WARRIOR)
54 damChangePer = skilll * 1.5
55 A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
56 local Rune = srcUser:GetRunePoint(163044_AESIR_SHADOW_WARRIOR_DMG_8)
57 local GemValue = srcUser:GetGemValue(163042_SHADOW_WARRIOR_DMG_PERCENTAGE)
58 local GemDam = 1 + GemValue / 100000
59 A = A * (1 + Rune * 0.08) * GemDam
60 if srcUser:HasBuffID(21630080_SHADOW_WARRIOR_CAN_CAST_CRITICAL_ATK_:MAX_STACK_0) then
61 local Cri = srcUser:GetProperty("Cri")
62 local CriRes2 = targetUser:GetProperty("CriRes")
63 local CriDamPer = srcUser:GetProperty("CriDamPer")
64 local CriDefPer2 = targetUser:GetProperty("CriDefPer")
65 local Rate = Cri - CriRes2
66 if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
67 return A * (1.5 + CriDamPer - CriDefPer2), CommonFun.DamageType.Crit
68 end
69 end
70 end
71 if skillID == 2035_SNIPER:CROSS_SLASH then
72 local GemValue = srcUser:GetGemValue(163121_CROSS_SLASH_DMG_PERCENTAGE)
73 local GemDam = 1 + GemValue / 100000
74 A = A * GemDam
75 end
76 if A <= 1 then
77 return 1
78 end
79 return A
80end