
Spiritual Curse
Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*2080% to enemies within a 4m radius
Skill Levels
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1960% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1840% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1720% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1600% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1480% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1360% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1240% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1120% to enemies within a 4m radius
• Casts a spell upon a targeted area, dealing Dark M. DMG of M. ATK*1000% to enemies within a 4m radius
Formula
1function CommonFun.calcDamage_18301(srcUser, targetUser, params, damageParam, logger)
2 local Luk = srcUser:GetProperty("Luk")
3 local Int = srcUser:GetProperty("Int")
4 local Vit = srcUser:GetProperty("Vit")
5 local MAtk = srcUser:GetProperty("MAtk")
6 local MAtkPer = srcUser:GetProperty("MAtkPer")
7 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
8 local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
9 if 1 <= IgnoreMDef then
10 IgnoreMDef = 1
11 end
12 local RangeDam = srcUser:GetProperty("RangeDam")
13 local MRefine = srcUser:GetProperty("MRefine")
14 local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
15 local targetDefElement = targetUser:GetProperty("DefAttr")
16 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
17 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
18 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
19 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
20 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
21 local bodyparam = 1
22 local skilllv_tx = srcUser:GetLernedSkillLevel(2325_ACOLYTE:WEIGHT_OF_SOUL)
23 if 0 < skilllv_tx then
24 bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
25 end
26 local MDef2 = targetUser:GetProperty("MDef")
27 local MDefPer2 = targetUser:GetProperty("MDefPer")
28 local Vit2 = targetUser:GetProperty("Vit")
29 local VitPer2 = targetUser:GetProperty("VitPer")
30 local Int2 = targetUser:GetProperty("Int")
31 local IntPer2 = targetUser:GetProperty("IntPer")
32 local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
33 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
34 local damChangePer = damageParam.damChangePer
35 local BaseMAtk = Int + math.floor(Int * Int / 100)
36 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2 * bodyparam
37 local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
38 local skilllv_xl = srcUser:GetLernedSkillLevel(2303_STELLAR_HUNTER:MIND_PIERCE)
39 local Num1 = srcUser:GetRunePoint(183014_AESIR_MIND_PIERCE_ADDITIONALLY_CALCULATES_10_POINTS_OF_LUCK_EFFECT)
40 local Num2 = srcUser:GetRunePoint(183015_AESIR_MIND_PIERCE_S_TRUE_DMG_5)
41 local RealDam = (Luk + Num1 * 10) * skilllv_xl * 20 * (1 + Num2 * 0.05)
42 local SoulDam = 1
43 local skilllv_soul = srcUser:GetLernedSkillLevel(2330_ACOLYTE:SOUL_HUNTER)
44 if targetUser:GetBuffEffectByType("PositiveSoul") or targetUser:GetBuffEffectByType("NegativeSoul") then
45 SoulDam = 1 + skilllv_soul * 0.06
46 end
47 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
48 if skillID == 2301_STELLAR_HUNTER:SOUL_IMPACT then
49 local count = params.hitedCount
50 local Num = srcUser:GetRunePoint(183009_AESIR_SOUL_IMPACT_S_DMG_10)
51 local GemValue = srcUser:GetGemValue(183161_SOUL_IMPACT_DMG_PERCENTAGE)
52 damChangePer = damChangePer * (1 + count * 0.5) * (1 + Num * 0.1) * (1 + GemValue / 100000)
53 end
54 if skillID == 2344_ACOLYTE:ESKA then
55 local skilllv_he = srcUser:GetLernedSkillLevel(2365_ACOLYTE:ESKA_ENHANCE)
56 damChangePer = damChangePer * (1 + skilllv_he * 0.05)
57 end
58 if skillID == 2320_ACOLYTE:SPIRITUAL_CURSE then
59 local Num = srcUser:GetRunePoint(183034_AESIR_SPIRITUAL_CURSE_DMG_6)
60 local GemValue = srcUser:GetGemValue(183101_SPIRITUAL_CURSE_DMG_PERCENTAGE)
61 damChangePer = damChangePer * (1 + Num * 0.06) * (1 + GemValue / 100000)
62 end
63 local A = (((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * damChangePer + RealDam) * (1 - RefineMDamReduc) * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * (1 + RangeDam) * SoulDam
64 if A <= 1 then
65 return 1
66 end
67 return A
68end