
Scratch
Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 330% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
Skill Levels
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 310% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 290% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 270% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 250% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 230% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 210% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 190% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 170% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
• Performs a Scratch attack on the specified enemy, dealing (Atk + M.Atk) * 150% + Skill Level * 40 physical damage and causing them to bleed. Increased Agi attribute grants a chance to deal 1.5x damage.
Formula
1function CommonFun.calcDamage_15101(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 local Int = srcUser:GetProperty("Int")
12 local MAtk = srcUser:GetProperty("MAtk")
13 local MAtkPer = srcUser:GetProperty("MAtkPer")
14 if targetUser.boss or targetUser.mini then
15 IgnoreDef = IgnoreDef1
16 else
17 IgnoreDef = IgnoreDef1 + IgnoreDef2
18 end
19 if 1 <= IgnoreDef then
20 IgnoreDef = 1
21 end
22 local Refine = srcUser:GetProperty("Refine")
23 local AttrEffect = srcUser:GetProperty("AttrEffect")
24 local bits = CommonFun.getBits(AttrEffect)
25 local Def2 = targetUser:GetProperty("Def")
26 local DefPer2 = targetUser:GetProperty("DefPer")
27 local Vit2 = targetUser:GetProperty("Vit")
28 local VitPer2 = targetUser:GetProperty("VitPer")
29 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
30 local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
31 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
32 local damChangePer = damageParam.damChangePer
33 local damChangePer1 = damageParam.damChangePer1
34 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
35 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
36 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
37 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
38 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
39 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
40 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
41 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
42 local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
43 local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
44 local BaseMAtk = Int + math.floor(Int * Int / 100)
45 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) * elementparam * elementparam2 + BaseMAtk) * raceparam * bossparam * bossparam2
46 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
47 local A = ((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) * (1 - RefineDamReduc) + damChangePer1 - Vit2 * (1 + VitPer2)
48 local Agi = srcUser:GetProperty("Agi")
49 local CriRate = math.min(Agi / 3 + 5, 100)
50 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
51 if skillID == 4107_PROFESSOR:EVIL_CAT_ROAR then
52 CriRate = 0
53 end
54 local shadow = 1
55 if srcUser:GetTempSkillSlaveID() == 806612 then
56 local GemNew = srcUser:GetGemValue(153142_SKILL_DMG_OF_LIFE_CONCENTRIC_S_ILLUSION_PERCENTAGE)
57 shadow = 1 + GemNew / 100000
58 end
59 if A <= 1 then
60 return 1
61 end
62 if CommonFun.IsInRate(CriRate, srcUser:GetRandom()) then
63 return A * 1.5 * shadow, CommonFun.DamageType.Crit
64 end
65 return A * shadow
66end