
Grimtooth
Attacks an enemy with spikes, dealing (Atk240%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 75% chance to remain hiding while casting. Katar type weapons are required.
Skill Levels
• Attacks an enemy with spikes, dealing (Atk230%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 70% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk220%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 65% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk210%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 60% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk200%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 55% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk190%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 50% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk180%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 45% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk170%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 40% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk160%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 35% chance to remain hiding while casting. Katar type weapons are required.
• Attacks an enemy with spikes, dealing (Atk150%) Dmg to all enemies in the target area. This can only be used when the caster is hiding. Has a 30% chance to remain hiding while casting. Katar type weapons are required.
Formula
1function CommonFun.calcDamage_3201(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 AttrEffect = srcUser:GetProperty("AttrEffect")
21 local bits = CommonFun.getBits(AttrEffect)
22 local AttrEffect2 = srcUser:GetProperty("AttrEffect")
23 local bits2 = CommonFun.getBits(AttrEffect2)
24 local Def2 = targetUser:GetProperty("Def")
25 local DefPer2 = targetUser:GetProperty("DefPer")
26 local Vit2 = targetUser:GetProperty("Vit")
27 local VitPer2 = targetUser:GetProperty("VitPer")
28 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
29 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
30 local damChangePer = damageParam.damChangePer
31 local damChangePer1 = damageParam.damChangePer1
32 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
33 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
34 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
35 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
36 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
37 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
38 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
39 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
40 local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
41 local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
42 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
43 local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
44 local BaseLvDamage = 0
45 local IBaseLv = srcUser.BaseLv
46 if srcUser:HasBuffID(42170_GALO_KATAR_:MAX_STACK_0) then
47 BaseLvDamage = IBaseLv * 20
48 end
49 local Num1 = srcUser:GetRunePoint(32026_AESIR_GRIMTOOTH_DMG_10)
50 local Num2 = srcUser:GetRunePoint(32027_AESIR_GRIMTOOTH_DMG_5)
51 local Num3 = srcUser:GetRunePoint(32028)
52 local Num4 = srcUser:GetRunePoint(32029)
53 local Num5 = srcUser:GetRunePoint(32030)
54 local RuneDamage = Num1 * 0.1 + Num2 * 0.05 + Num3 * 0.05 + Num4 * 0.1 + Num5 * 0.05 + 1
55 local Num6 = srcUser:GetRunePoint(32019_AESIR_GRIMTOOTH_HAS_A_5_TO_DEAL_CRITICAL_DAMAGE_DMG_20)
56 local Num7 = srcUser:GetRunePoint(32020)
57 local Num8 = srcUser:GetRunePoint(32021_AESIR_GRIMTOOTH_HAS_A_5_TO_DEAL_CRITICAL_DAMAGE_DMG_40)
58 local Num9 = srcUser:GetRunePoint(32022)
59 local Num10 = srcUser:GetRunePoint(32023)
60 local RuneDamage2 = Num6 * 0.2 + Num7 * 0.2 + Num8 * 0.4 + Num9 * 0.2 + Num10 * 0.4 + 1
61 local RuneRate = (Num6 + Num7 + Num8 + Num9 + Num10) * 5
62 local DamGem = srcUser:GetGemValue(31101_GRIMTOOTH_DMG_PERCENTAGE)
63 local A = (((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) + damChangePer1) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)) * RuneDamage * (1 + DamGem / 100000) + BaseLvDamage
64 if A <= 1 then
65 return 1
66 end
67 local B = 1
68 if bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 and srcUser:HasBuffID(90001044_BLOOD_TEARS_1_TIER_5_:MAX_STACK_0) and srcUser:HasBuffID(90001047_BLOOD_TEARS_1_TIER_8_:MAX_STACK_0) then
69 B = 2
70 elseif bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 and srcUser:HasBuffID(90001044_BLOOD_TEARS_1_TIER_5_:MAX_STACK_0) then
71 B = 1.8
72 elseif bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 then
73 B = 1.5
74 end
75 local C = 1
76 if bits2[CommonFun.AttrEffect.Hualiduanjian] == 1 then
77 C = 1.5
78 end
79 if CommonFun.IsInRate(RuneRate, srcUser:GetRandom()) then
80 return A * B * C * RuneDamage2, CommonFun.DamageType.Crit
81 end
82 return A * B * C
83end