
Duple Light
Lv 15AttackPhysical
Range: 1.5
Skill Levels
Lvl: 14
Attack
Physical
Range: 1.5
•
Lvl: 13
Attack
Physical
Range: 1.5
•
Lvl: 12
Attack
Physical
Range: 1.5
•
Lvl: 11
Attack
Physical
Range: 1.5
•
Lvl: 10
Attack
Physical
Range: 1.5
•
Lvl: 9
Attack
Physical
Range: 1.5
•
Lvl: 8
Attack
Physical
Range: 1.5
•
Lvl: 7
Attack
Physical
Range: 1.5
•
Lvl: 6
Attack
Physical
Range: 1.5
•
Lvl: 5
Attack
Physical
Range: 1.5
•
Lvl: 4
Attack
Physical
Range: 1.5
•
Lvl: 3
Attack
Physical
Range: 1.5
•
Lvl: 2
Attack
Physical
Range: 1.5
•
Lvl: 1
Attack
Physical
Range: 1.5
•
Formula
1function CommonFun.calcDamage_5401(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) + BaseMAtk) * raceparam
43 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
44 local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
45 local Num = srcUser:GetRunePoint(54080_AESIR_DUPLE_LIGHT_DAMAGE_5)
46 local RuneDamage = 1 + Num * 0.05
47 local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
48 if skillID == 63009_:DUPLE_LIGHT then
49 local skilllv = srcUser:GetLernedSkillLevel(63005_:DUPLE_LIGHT)
50 damChangePer = 0.05 * skilllv + 0.5
51 end
52 local NormalAtkDam = srcUser:GetProperty("NormalAtkDam")
53 local NormalAtkRes = targetUser:GetProperty("NormalAtkRes")
54 local NormalEnd = 1 + NormalAtkDam - NormalAtkRes
55 NormalEnd = math.max(NormalEnd, 0.1)
56 local A = (((AtkFinal + MAtkFinal) * (1 - DamReduc2) + Refine + MRefine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * RuneDamage * NormalEnd
57 if srcUser:HasBuffID(56440_MULTI_FIERCE_CARD_:MAX_STACK_0) or srcUser:HasBuffID(56450_MULTI_FIERCE_CARD_:MAX_STACK_0) then
58 A = A * 1.3
59 end
60 local Cri = srcUser:GetProperty("Cri")
61 local CriRes2 = targetUser:GetProperty("CriRes")
62 local CriDamPer = srcUser:GetProperty("CriDamPer")
63 local CriDefPer2 = targetUser:GetProperty("CriDefPer")
64 local Rate = Cri - CriRes2
65 if CommonFun.IsInRate(Rate, srcUser:GetRandom()) and srcUser:HasBuffID(56450_MULTI_FIERCE_CARD_:MAX_STACK_0) then
66 return A * (1.5 + CriDamPer - CriDefPer2), CommonFun.DamageType.Crit
67 end
68 if A <= 1 then
69 return 1
70 end
71 return A
72endPreserved HTML snapshot from ROM Handbook
