
Dragon's Water Breath
Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*1160% to enemies within range. Enemies hit by the dragon breath have a 100% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
Aesir Effects
Skill Levels
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*1110% to enemies within range. Enemies hit by the dragon breath have a 90% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*1060% to enemies within range. Enemies hit by the dragon breath have a 80% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*1010% to enemies within range. Enemies hit by the dragon breath have a 70% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*960% to enemies within range. Enemies hit by the dragon breath have a 60% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*910% to enemies within range. Enemies hit by the dragon breath have a 50% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*860% to enemies within range. Enemies hit by the dragon breath have a 40% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*810% to enemies within range. Enemies hit by the dragon breath have a 30% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*760% to enemies within range. Enemies hit by the dragon breath have a 20% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
• Make the dragon breathe frost, dealing Water Physical Damage equivalent to (Atk + M.Atk)*710% to enemies within range. Enemies hit by the dragon breath have a 10% chance of being inflicted with Frozen status for 5 sec,DMG is increased by 20%when inflicted with HP Alight status,every own 10 VIT will increase Dmg by 1%
Formula
1function CommonFun.calcDamage_1401(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 * bossparam * bossparam2
43 local DefReduc = CommonFun.CalcDef(srcUser, targetUser, params)
44 local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
45 local Vit = srcUser:GetProperty("Vit")
46 local VitRatio = 1 + Vit / 1000
47 local HpFire = 1
48 if srcUser:HasBuffID(80220_HP_ALIGHT_:MAX_STACK_0) or srcUser:HasBuffID(80223_HP_ALIGHT_PEAK_:MAX_STACK_0) then
49 HpFire = 1.2
50 end
51 local skilllv_1 = srcUser:GetLernedSkillLevel(1260_ASSASSIN:DRAGON_TRAINING)
52 local Ride = 1
53 if srcUser:HasEquipFeature(1) then
54 Ride = 1 + skilllv_1 * 0.05
55 end
56 local Dragon = 1
57 local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
58 if srcUser:HasBuffID(41200_LANCE_OF_DRAGON_TAMER_1_:MAX_STACK_0) then
59 Dragon = 1 + RefineLv7 * 0.01
60 end
61 local Dragon1 = 0
62 if srcUser:HasBuffID(41200_LANCE_OF_DRAGON_TAMER_1_:MAX_STACK_0) and 15 <= RefineLv7 then
63 Dragon1 = 1
64 end
65 if srcUser:HasBuffID(41740_DRAGON_HOWL_:MAX_STACK_0) then
66 Dragon = 1 + RefineLv7 * 0.01
67 end
68 if srcUser:HasBuffID(41740_DRAGON_HOWL_:MAX_STACK_0) and 15 <= RefineLv7 then
69 Dragon1 = 2
70 end
71 local Numxp = srcUser:GetRunePoint(14020_AESIR_DRAGON_BREATH_DRAGON_S_WATER_BREATH_DMG_6)
72 local RuneDamage = 1 + Numxp * 0.06
73 local card = 1
74 if srcUser:HasBuffID(52580_FIRE_ELF_CARD_:MAX_STACK_0) then
75 card = 1.1
76 end
77 local GemValue = srcUser:GetGemValue(11001_DRAGON_BREATH_AND_DRAGON_S_WATER_BREATH_DMG_PERCENTAGE)
78 local GemDam = 1 + GemValue / 100000
79 local Sign = 1
80 local Num1 = targetUser:GetBuffLayer(117660_DEEP_CUT_:MAX_STACK_5)
81 local fromid = targetUser:GetBuffFromID(117660_DEEP_CUT_:MAX_STACK_5)
82 local guid = srcUser:GetGuid()
83 local skilllv_1 = srcUser:GetLernedSkillLevel(1267_ASSASSIN:DEEP_CUT)
84 skilllv_1 = math.min(skilllv_1, 5)
85 local GemValue = srcUser:GetGemValue(11131_DAMAGE_CAUSED_BY_EACH_DEEP_CUT_STACK_PERCENTAGE)
86 if fromid == guid and srcUser:HasBuffID(20110130_DRAGON_BREATH_TRIGGERS_DEEP_CUT_:MAX_STACK_0) then
87 Sign = 1 + (skilllv_1 * 0.01 + 0.02 + GemValue / 100000) * Num1
88 end
89 local A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
90 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
91 if skillID == 3008_BLACKSMITH:MAGIC_DRAGON_BREATH or skillID == 3015_BLACKSMITH:MAGIC_DRAGON_BREATH then
92 local skilllv_hlx = srcUser:GetLernedSkillLevel(1261_ASSASSIN:DRAGON_BREATH)
93 local skilllv_slx = srcUser:GetLernedSkillLevel(1272_ASSASSIN:DRAGON_S_WATER_BREATH)
94 local damChangePer_hlx = skilllv_hlx * 0.5 + 6.6
95 local damChangePer_slx = skilllv_slx * 0.5 + 6.6
96 local hlx = damageParam.hlx
97 local slx = damageParam.slx
98 local Dam_hlx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_hlx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
99 local Dam_slx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_slx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
100 if skilllv_hlx < 1 then
101 Dam_hlx = 0
102 end
103 if skilllv_slx < 1 then
104 Dam_slx = 0
105 end
106 local skilllv_ml = srcUser:GetLernedSkillLevel(3008_BLACKSMITH:MAGIC_DRAGON_BREATH)
107 local GemValue_lx = srcUser:GetGemValue(11161_MAGIC_DRAGON_BREATH_ADDITIONALLY_CAUSES_DARK_PHY_DMG_OF_DRAGON_BREATH_PERCENTAGE)
108 local Dam_alx = 0
109 if 0 < GemValue_lx and hlx == 0 and slx == 0 then
110 Dam_alx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_hlx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
111 end
112 A = (Dam_hlx * hlx + Dam_slx * slx) * (skilllv_ml * 0.08 + 0.2) + Dam_alx * GemValue_lx / 100000
113 end
114 local StateEffect = targetUser:GetProperty("StateEffect")
115 local bits = CommonFun.getBits(StateEffect)
116 local GemState = srcUser:GetGemValue(11002_DRAGON_BREATH_AND_DRAGON_S_WATER_BREATH_DEAL_AN_EXTRA_PERCENTAGE_DMG_TO_TARGETS_UNDER_FREEZING_AND_BURN_STATUS)
117 local skilllv_ha = srcUser:GetLernedSkillLevel(3005_BLACKSMITH:DARK_KNIGHT)
118 if bits[CommonFun.StateEffect.Burn] == 1 or bits[CommonFun.StateEffect.Freeze] == 1 then
119 A = A * (1 + GemState / 100000)
120 end
121 if bits[CommonFun.StateEffect.Dark] == 1 then
122 A = A * (1 + skilllv_ha * 0.04)
123 end
124 local enemy = srcUser:IsEnemy(targetUser)
125 if enemy == false then
126 return 0, CommonFun.DamageType.None
127 end
128 if A <= 1 then
129 return 1
130 end
131 return A
132end