
Back Stab
Deals physical damage equal to 1500% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
Skill Levels
• Deals physical damage equal to 1440% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1380% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1320% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1260% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1200% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1140% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1080% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 1020% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 960% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 900% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 840% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 780% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 720% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 660% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 600% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 540% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 480% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 420% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
• Deals physical damage equal to 360% of Atk to a single enemy. When cast during 【Hiding】, the damage is increased by 100%. Requires short sword-type Weapons as Equipment to cast. When targeting monsters, always treats the caster as being in the 【Hiding】 state.
Formula
1function CommonFun.calcDamage_9205(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 Hp2 = targetUser:GetProperty("Hp")
27 local MaxHp2 = targetUser:GetProperty("MaxHp")
28 local damChangePer = damageParam.damChangePer
29 local AttrEffect = srcUser:GetProperty("AttrEffect")
30 local bits = CommonFun.getBits(AttrEffect)
31 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
32 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
33 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
34 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
35 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
36 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
37 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
38 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
39 local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
40 local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
41 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
42 local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
43 local Num1 = srcUser:GetRunePoint(90080_AESIR_DAMAGE_OF_BACK_STAB_8)
44 local RuneDamage = Num1 * 0.08 + 1
45 local kerd = 1
46 if srcUser:HasBuffID(40672_CALDER_DAGGER_1_:MAX_STACK_0) then
47 kerd = 1.5
48 end
49 local yake2 = 1
50 if srcUser:HasBuffID(90002160_TOOTH_BLADE_TIER_1_:MAX_STACK_0) then
51 yake2 = 1.15
52 end
53 local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
54 local Weapon = srcUser:GetEquipedID(7_WEAPON)
55 local targetRace = targetUser.race
56 if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
57 race2 = 3
58 end
59 if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
60 elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
61 targetRace = 2
62 end
63 local Hand = 1
64 if targetRace == 2 and (Weapon == 40744_SCALPEL_1 or Weapon == 140744_SCALPEL_2 or Weapon == 40745_TOOTH_BLADE_1 or Weapon == 140745_TOOTH_BLADE_2) then
65 if 10 <= RefineLv and RefineLv < 15 then
66 Hand = 1.05
67 elseif 15 <= RefineLv then
68 Hand = 1.15
69 end
70 end
71 if targetRace == 2 and srcUser:HasBuffID(90002161_TOOTH_BLADE_TIER_2_:MAX_STACK_0) and 5 <= RefineLv then
72 Hand = Hand + 0.05
73 end
74 if srcUser:HasBuffID(22920_EXPERT_SURGEON_:MAX_STACK_0) then
75 yake2 = 1.15 + RefineLv * 0.01
76 end
77 if targetRace == 2 and srcUser:HasBuffID(22920_EXPERT_SURGEON_:MAX_STACK_0) then
78 if 5 <= RefineLv and RefineLv < 10 then
79 Hand = Hand + 0.05
80 elseif 10 <= RefineLv and RefineLv < 15 then
81 Hand = Hand + 0.05 + 0.05
82 elseif 15 <= RefineLv then
83 Hand = Hand + 0.05 + 0.05 + 0.1
84 end
85 end
86 local yake = 0
87 if targetRace == 2 and srcUser:HasBuffID(24380_THIEF_CLOTHES_:MAX_STACK_0) and (srcUser:HasBuffID(40690_TOOTH_BLADE_1_:MAX_STACK_0) or srcUser:HasBuffID(22920_EXPERT_SURGEON_:MAX_STACK_0)) then
88 yake = 0.5
89 end
90 if targetRace == 2 and srcUser:HasBuffID(42490_BREATH_HOLDER_S_ARMOR_:MAX_STACK_0) and (srcUser:HasBuffID(40690_TOOTH_BLADE_1_:MAX_STACK_0) or srcUser:HasBuffID(22920_EXPERT_SURGEON_:MAX_STACK_0)) then
91 yake = 0.5
92 end
93 local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
94 if equipRingSD.id ~= 0 and targetRace == 2 and srcUser:HasBuffLayer(42490, EBUFFERLAYER_SHADOW) and (srcUser:HasBuffID(40690_TOOTH_BLADE_1_:MAX_STACK_0) or srcUser:HasBuffID(22920_EXPERT_SURGEON_:MAX_STACK_0)) then
95 yake = 0.5
96 end
97 local Enemy = 1
98 local skilllv_1 = srcUser:GetLernedSkillLevel(1145_ARCANE_MASTER:PICK_EM_OFF)
99 if 0 < skilllv_1 and 1 >= srcUser:GetRangeEnemy(3) then
100 Enemy = 1 + skilllv_1 * 0.03
101 if srcUser:HasBuffID(20910080_BACK_STAB_IGNORES_MITIGATION_:MAX_STACK_0) then
102 DefReduc = 1
103 RefineDamReduc = 0
104 end
105 end
106 local GemValue = srcUser:GetGemValue(91041_BACK_STAB_DMG_PERCENTAGE)
107 local GemDam = 1 + GemValue / 100000
108 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
109 local yx = 1
110 if skillID == 4210_SORCERER:DEATH_STEALTH then
111 local skilllv_bc = srcUser:GetLernedSkillLevel(480_RUNEMASTER:BACK_STAB)
112 local skilllv_yx = srcUser:GetLernedSkillLevel(4210_SORCERER:DEATH_STEALTH)
113 damChangePer = skilllv_bc * 0.6 + 3
114 local skilllv_xjn = srcUser:GetLernedSkillLevel(4224_SORCERER:DEATH_STEALTH_SHADOW_ATK)
115 local ShadowNum = srcUser:GetPetCount("ShadowNpc")
116 yx = (1.5 + skilllv_yx * 0.05) * (1 + skilllv_xjn * 0.05 * ShadowNum)
117 end
118 local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * (damChangePer + yake) * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) * RuneDamage - Vit2 * (1 + VitPer2)) * kerd * Hand * Enemy * yake2 * GemDam * yx
119 if A <= 1 then
120 return 1
121 end
122 local Hiding = srcUser:GetProperty("Hiding")
123 if bits[CommonFun.AttrEffect.Hualiduanjian] == 1 and (Hiding == 1 or bits[CommonFun.AttrEffect.HideStrengthEffect] == 1) or targetUser:GetNpcID() ~= 0 then
124 return A * 1.5 * 2
125 elseif Hiding == 1 or bits[CommonFun.AttrEffect.HideStrengthEffect] == 1 or targetUser:GetNpcID() ~= 0 then
126 return A * 2
127 elseif bits[CommonFun.AttrEffect.Hualiduanjian] == 1 then
128 return A * 1.5
129 end
130 return A
131end