
Turn Undead
Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 200) points of holy damage to target, and deals holy damage equal to M.Atk x1200% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 100%
Skill Levels
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 190) points of holy damage to target, and deals holy damage equal to M.Atk x1140% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 90%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 180) points of holy damage to target, and deals holy damage equal to M.Atk x1080% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 80%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 170) points of holy damage to target, and deals holy damage equal to M.Atk x1020% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 70%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 160) points of holy damage to target, and deals holy damage equal to M.Atk x960% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 60%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 150) points of holy damage to target, and deals holy damage equal to M.Atk x900% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 50%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 140) points of holy damage to target, and deals holy damage equal to M.Atk x840% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 40%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 130) points of holy damage to target, and deals holy damage equal to M.Atk x780% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 30%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 120) points of holy damage to target, and deals holy damage equal to M.Atk x720% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 20%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 110) points of holy damage to target, and deals holy damage equal to M.Atk x660% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP. Increases [Magnus Exorcismus]'s skill multiplier by 10%
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 100) points of holy damage to target, and deals holy damage equal to M.Atk x600% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 90) points of holy damage to target, and deals holy damage equal to M.Atk x540% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 80) points of holy damage to target, and deals holy damage equal to M.Atk x480% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 70) points of holy damage to target, and deals holy damage equal to M.Atk x420% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 60) points of holy damage to target, and deals holy damage equal to M.Atk x360% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 50) points of holy damage to target, and deals holy damage equal to M.Atk x300% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 40) points of holy damage to target, and deals holy damage equal to M.Atk x240% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 30) points of holy damage to target, and deals holy damage equal to M.Atk x180% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 20) points of holy damage to target, and deals holy damage equal to M.Atk x120% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
• Has a chance to kill an undead target instantly (doesn't work on MVP or Mini Monster). If failed, deals (Role Level + Int + 10) points of holy damage to target, and deals holy damage equal to M.Atk x60% to Devil Monsters. Chance of instant kill is affected by INT, LUK, Skill level and target's current HP.
Formula
1function CommonFun.calcDamage_5102(srcUser, targetUser, params, damageParam, logger)
2 local BaseLv = srcUser.BaseLv
3 local Int = srcUser:GetProperty("Int")
4 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
5 local DefAttr2 = targetUser:GetProperty("DefAttr")
6 local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
7 local targetDefElement = targetUser:GetProperty("DefAttr")
8 local ElementRate = CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam)
9 if srcAtkElement == 6 and targetDefElement == 7 then
10 local GemValue = srcUser:GetGemValue(51022_HOLY_STAT_S_RESISTANCE_EFFECT_AGAINST_DARK_STAT_PERCENTAGE)
11 ElementRate = ElementRate + GemValue / 100000
12 end
13 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
14 local damChangePer = damageParam.damChangePer
15 local damChangePer1 = damageParam.damChangePer1
16 local A = (BaseLv + Int + damChangePer) * ElementRate * elementparam2 * (1 + MDamIncrease)
17 local race2 = targetUser.race
18 if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
19 race2 = 3
20 end
21 if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
22 elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
23 race2 = 2
24 end
25 if race2 == 3 then
26 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
27 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
28 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
29 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
30 local MAtk = srcUser:GetProperty("MAtk")
31 local MAtkPer = srcUser:GetProperty("MAtkPer")
32 local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
33 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
34 local MRefine = srcUser:GetProperty("MRefine")
35 local BaseMAtk = Int + math.floor(Int * Int / 100)
36 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
37 local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
38 local Num0 = srcUser:GetRunePoint(52180_AESIR_IN_CASE_OF_ATTACKING_DEVIL_MONSTERS_SKILL_MULTIPLIER_100)
39 local RuneDamage0 = Num0
40 A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * (1 - RefineMDamReduc) * (damChangePer1 + RuneDamage0) * (1 + MDamIncrease) * ElementRate * elementparam2
41 end
42 if A <= 1 then
43 A = 1
44 end
45 local Num1 = srcUser:GetRunePoint(51014_AESIR_IF_TURN_UNDEAD_FAILED_TO_KILL_UNDEAD_MONSTERS_THE_CASTER_RECOVERS_HP_BY_7_DAMAGE_DEALT_IF_THE_TARGET_IS_NOT_UNDEAD_RECOVERY_AMOUNT_1_2)
46 local Num2 = srcUser:GetRunePoint(51018)
47 local Num3 = srcUser:GetRunePoint(52027)
48 local RuneDamage = (Num1 + Num2 + Num3) * 0.07
49 if targetUser.isServerCall and 0 < RuneDamage then
50 if DefAttr2 == CommonFun.Nature.Undead then
51 srcUser:DoExtraDamage(A * -1 * RuneDamage)
52 else
53 srcUser:DoExtraDamage(A * -1 * RuneDamage * 0.5)
54 end
55 end
56 return A
57end