
Improved Acid Demonstration
Deals ((Atk+M.Atk) x 1380% + target's VIT) Dmg to an enemy Has a 20% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
Aesir Effects
Skill Levels
• Deals ((Atk+M.Atk) x 1350% + target's VIT) Dmg to an enemy Has a 19% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1320% + target's VIT) Dmg to an enemy Has a 18% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1290% + target's VIT) Dmg to an enemy Has a 17% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1260% + target's VIT) Dmg to an enemy Has a 16% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1230% + target's VIT) Dmg to an enemy Has a 15% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1200% + target's VIT) Dmg to an enemy Has a 14% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1170% + target's VIT) Dmg to an enemy Has a 13% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1140% + target's VIT) Dmg to an enemy Has a 12% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1110% + target's VIT) Dmg to an enemy Has a 11% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1080% + target's VIT) Dmg to an enemy Has a 10% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 1000% + target's VIT) Dmg to an enemy Has a 9% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 920% + target's VIT) Dmg to an enemy Has a 8% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 840% + target's VIT) Dmg to an enemy Has a 7% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 760% + target's VIT) Dmg to an enemy Has a 6% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 680% + target's VIT) Dmg to an enemy Has a 5% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 600% + target's VIT) Dmg to an enemy Has a 4% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 520% + target's VIT) Dmg to an enemy Has a 3% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 440% + target's VIT) Dmg to an enemy Has a 2% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
• Deals ((Atk+M.Atk) x 360% + target's VIT) Dmg to an enemy Has a 1% chance to break enemy’s weapon and armor This skill ignores Flee, [Auto Guard] and [Sword Parry]. [Acid Terror] skill level affects VIT factor
Formula
1function CommonFun.calcDamage_13204(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 Int = srcUser:GetProperty("Int")
6 local Atk = srcUser:GetProperty("Atk")
7 local AtkPer = srcUser:GetProperty("AtkPer")
8 local MAtk = srcUser:GetProperty("MAtk")
9 local MAtkPer = srcUser:GetProperty("MAtkPer")
10 local DamIncrease = srcUser:GetProperty("DamIncrease")
11 local IgnoreDef = 0
12 local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
13 local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
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 MRefine = srcUser:GetProperty("MRefine")
23 local Refine = srcUser:GetProperty("Refine")
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 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 BaseMAtk = Int + math.floor(Int * Int / 100)
42 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) * elementparam * elementparam2 + BaseMAtk) * raceparam
43 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
44 local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
45 local Num1 = srcUser:GetRunePoint(130210_AESIR_DAMAGE_OF_IMPROVED_ACID_DEMONSTRATION_8)
46 local RuneDamage1 = Num1 * 0.08 + 1
47 local aerde2 = 0
48 local weaponRefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
49 if srcUser:HasBuffID(40610_ELDER_S_HAMMER_1_:MAX_STACK_0) or srcUser:HasBuffID(42000_ERODING_TOUCH_:MAX_STACK_0) then
50 aerde2 = weaponRefineLv * 0.3
51 end
52 local Int8 = srcUser:GetProperty("Int")
53 local Str8 = srcUser:GetProperty("Str")
54 local Vit8 = srcUser:GetProperty("Vit")
55 if srcUser:HasBuffID(90001883_ELDER_S_HAMMER_1_TIER_4_:MAX_STACK_0) and 119 <= Int8 and 119 <= Str8 then
56 aerde2 = aerde2 + 0.75
57 end
58 if srcUser:HasBuffID(42000_ERODING_TOUCH_:MAX_STACK_0) and 119 <= Int8 and 119 <= Str8 then
59 aerde2 = aerde2 + 0.75
60 end
61 local aerde3 = 1
62 if srcUser:HasBuffID(91000300_ELDER_S_HAMMER_CHEMICAL_PROTECTION_GLOVES_:MAX_STACK_0) then
63 aerde3 = 0.15 + aerde3
64 end
65 if srcUser:HasBuffID(91000710_ERODING_TOUCH_CHEMICAL_PROTECTION_GLOVES_:MAX_STACK_0) then
66 aerde3 = 0.15 + aerde3
67 end
68 if srcUser:HasBuffID(91001520_ELDER_S_HAMMER_VENOM_FANG_GLOVES_:MAX_STACK_0) or srcUser:HasBuffID(91001521_ACID_TOUCH_VENOM_FANG_GLOVES_:MAX_STACK_0) then
69 aerde3 = 0.15 + aerde3
70 end
71 if srcUser:HasBuffID(90002203_CHEMICAL_PROTECTION_GLOVES_TIER_4_:MAX_STACK_0) then
72 aerde3 = 0.05 + aerde3
73 end
74 if srcUser:HasBuffID(43390_VENOM_FANG_GLOVES_:MAX_STACK_0) then
75 aerde3 = 0.05 + aerde3
76 end
77 local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_SHIELD)
78 if equipRingSD.id ~= 0 and srcUser:HasBuffLayer(43390, EBUFFERLAYER_SHADOW) then
79 aerde3 = aerde3 + 0.05 * equipRingSD.quench_per / 100
80 end
81 local Num2 = srcUser:GetRunePoint(130170_AESIR_IN_THE_PRESENCE_OF_HOMUNCULUS_LIF_DAMAGE_OF_ACID_DEMONSTRATION_3_DAMAGE_OF_ACID_TERROR_3_DAMAGE_OF_IMPROVED_ACID_DEMONSTRATION_2)
82 local RuneDamage2 = 1
83 if srcUser:IsBeingPresent(600010) == true then
84 RuneDamage2 = Num2 * 0.02 + 1
85 end
86 local skilllv_1 = srcUser:GetLernedSkillLevel(411_RUNE_KNIGHT:ACID_TERROR)
87 local VitRatio = 0
88 local Num3 = srcUser:GetRunePoint(133010_AESIR_IMPROVED_ACID_DEMONSTRATION_ADDS_10_POINTS_WHEN_CALCULATING_VIT)
89 local GemValue = srcUser:GetGemValue(132012_WHEN_CALCULATING_THE_DMG_OF_IMPROVED_ACID_DEMONSTRATION_AND_FIRE_EXPANSION_TARGET_VIT_PERCENTAGE_POINTS)
90 if targetUser:GetNpcID() ~= 0 then
91 local MaxHp2 = targetUser:GetProperty("MaxHp")
92 Vit2 = math.min(math.floor(math.sqrt(MaxHp2 / 10000)) + 30, 350)
93 end
94 Vit2 = Vit2 + Num3 * 10 + GemValue / 1000
95 if 0 < Vit2 and Vit2 <= 180 then
96 VitRatio = Vit2 / 45 * (1 + skilllv_1 / 40)
97 elseif 180 < Vit2 and Vit2 <= 280 then
98 VitRatio = Vit2 / 40 * (1 + skilllv_1 / 35)
99 elseif 280 < Vit2 then
100 VitRatio = Vit2 / 35 * (1 + skilllv_1 / 35)
101 end
102 local Fire = 1
103 local skilllv_2 = srcUser:GetLernedSkillLevel(1121_ARCANE_MASTER:SEARING_STORM)
104 local Numxp = srcUser:GetRunePoint(134010_AESIR_DAMAGE_DEALT_BY_IMPROVED_ACID_DEMONSTRATION_OF_DEMONIC_FIRE_4)
105 local RuneFire = Numxp * 0.04
106 if targetUser:HasBuffID(116204_DEMONIC_FIRE_STRONG_FIRE_DAMAGE_INCREASED_:MAX_STACK_0) then
107 Fire = skilllv_2 * 0.04 + 1 + RuneFire
108 end
109 local A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer + VitRatio + aerde2) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * RuneDamage1 * aerde3 * RuneDamage2 * Fire
110 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
111 local skilllv_3 = srcUser:GetLernedSkillLevel(422_RUNE_KNIGHT:IMPROVED_ACID_DEMONSTRATION)
112 if skillID == 1122_ARCANE_MASTER:FIRE_EXPANSION then
113 local damChangePer = 2.8
114 if skilllv_3 <= 10 then
115 damChangePer = 2.8 + 0.8 * skilllv_3
116 elseif 10 < skilllv_3 then
117 damChangePer = 10.8 + 0.3 * (skilllv_3 - 10)
118 end
119 local Numxp = srcUser:GetRunePoint(134090_AESIR_FIRE_EXPANSION_DAMAGE_6)
120 local RuneDamageFire = 1 + Numxp * 0.06
121 A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer + VitRatio + aerde2) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * RuneDamage1 * aerde3 * RuneDamage2 * Fire * RuneDamageFire
122 end
123 if skillID == 3706_ROYAL_GUARD:CRAZY_THROWING then
124 local damChangePer = 2.8
125 if skilllv_3 <= 10 then
126 damChangePer = 2.8 + 0.8 * skilllv_3
127 elseif 10 < skilllv_3 then
128 damChangePer = 10.8 + 0.3 * (skilllv_3 - 10)
129 end
130 local skilllv_4 = srcUser:GetLernedSkillLevel(3706_ROYAL_GUARD:CRAZY_THROWING)
131 local LeadRatio = skilllv_4 * 0.05 + 0.3
132 local skilllv_chj = srcUser:GetLernedSkillLevel(3724_ROYAL_GUARD:CRAZY_THROWING_CATALYST)
133 local layer = srcUser:GetBuffLayer(129600_CRAZY_THROWING_CATALYST_:MAX_STACK_10)
134 local chj = 1 + layer * skilllv_chj * 0.01
135 A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer + VitRatio + aerde2) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * RuneDamage1 * aerde3 * RuneDamage2 * Fire * LeadRatio * chj
136 end
137 local skilllv_yj = srcUser:GetLernedSkillLevel(1135_ARCANE_MASTER:UNSTABLE_POTION)
138 local GemValue = srcUser:GetGemValue(132132_UNSTABLE_POTION_LIMIT_PERCENTAGE)
139 local random_yj = srcUser:GetRandom()
140 local Final_ran = (80 + random_yj * (skilllv_yj * 0.05 + 0.45 + GemValue / 100000)) / 100
141 if Final_ran <= 1 and srcUser:HasBuffID(21320100_UNSTABLE_POTION_MINIMUM_100_:MAX_STACK_0) then
142 Final_ran = 1
143 end
144 if 0 < skilllv_yj then
145 A = A * Final_ran
146 if 1 < Final_ran then
147 return A, CommonFun.DamageType.Crit
148 end
149 end
150 if A <= 1 then
151 return 1
152 end
153 return A
154end