
Twisted Bomb
Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1500% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
Skill Levels
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1400% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1300% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1200% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1100% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x1000% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x900% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x800% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x700% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
• Cast a timed bomb on an enemy. After 5 seconds countdown, cause Neutral True M.DMG equivalent to M.Atk x600% to the target and allies 3 meters around them. After the bomb is detonated, the injured enemy will carry a non infectious [Twisted Bomb], and the DMG is half of the previous one
Formula
1function CommonFun.calcBuff_5990(srcUser, targetUser, a, b, c, d, lv)
2 local Int = srcUser:GetProperty("Int")
3 local Vit = srcUser:GetProperty("Vit")
4 local MAtk = srcUser:GetProperty("MAtk")
5 local MAtkPer = srcUser:GetProperty("MAtkPer")
6 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
7 local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
8 if 1 <= IgnoreMDef then
9 IgnoreMDef = 1
10 end
11 local MRefine = srcUser:GetProperty("MRefine")
12 local srcAtkElement = 5
13 local targetDefElement = targetUser:GetProperty("DefAttr")
14 local ElementRate = CommonFun.GetElementRate(srcUser, srcAtkElement, targetUser, targetDefElement)
15 if (srcUser:HasBuffID(69650_8608_:MAX_STACK_0) or srcUser:HasBuffID(71090_10658_:MAX_STACK_0)) and 1 < ElementRate then
16 ElementRate = ElementRate * 1.1
17 end
18 if targetUser:HasBuffID(49130_DIVINE_HYMN_CARVER_:MAX_STACK_0) then
19 ElementRate = math.min(ElementRate, 1)
20 end
21 if srcUser:HasBuffID(49210_7892_:MAX_STACK_0) then
22 ElementRate = ElementRate + 0.15
23 end
24 if srcUser:HasBuffID(77480_48193_VICTORY_SWALLOW_1_:MAX_STACK_0) then
25 ElementRate = ElementRate + 0.1
26 end
27 if srcUser:HasBuffID(59630_DINGGUI_SYNERGY_CARD_:MAX_STACK_0) and (srcAtkElement == 3 or srcAtkElement == 4) then
28 ElementRate = ElementRate + 0.1
29 end
30 if srcUser:HasBuffID(59670_RESENTFUL_THOR_SOL_CARD_:MAX_STACK_0) and srcAtkElement == 1 then
31 ElementRate = ElementRate + 0.1
32 end
33 if srcUser:HasBuffID(700680_3013155_TWNPC_REMOVE_WINGS_:MAX_STACK_0) then
34 local RefineLv11 = srcUser:GetEquipedRefineLv(11)
35 ElementRate = ElementRate + 0.01 * RefineLv11
36 end
37 if nil == CommonFun.NatureProps[srcAtkElement] or nil == CommonFun.NatureProps[targetDefElement] or nil == targetDefElement then
38 return 0
39 end
40 local NeutralAtk = srcUser:GetProperty("NeutralAtk")
41 local GemValue = srcUser:GetGemValue(82161_TWISTED_BOMB_S_NEUTRAL_ATK_PERCENTAGE)
42 local ele = ElementRate * (1 + NeutralAtk + GemValue / 100000)
43 local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
44 local NpcParam = CommonFun.NpcParam(srcUser, targetUser, params, damageParam, logger)
45 local BaseMAtk = Int + math.floor(Int * Int / 100)
46 local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * NpcParam
47 local damChangePer = lv + 5
48 local skilllv_zd = srcUser:GetLernedSkillLevel(3227_MECHANIC:TWISTED_BOMB_ENHANCE)
49 local MDamSpike = srcUser:GetProperty("MDamSpike_MPEN")
50 local ResultDamInc = srcUser:GetProperty("ResultDamInc")
51 local ResultDamRes = targetUser:GetProperty("ResultDamRes")
52 if srcUser:HasBuffID(57200_DEMONIC_OVERSEER_CARD_:MAX_STACK_0) then
53 ResultDamInc = ResultDamInc + 0.15
54 end
55 local Result = 1 + ResultDamInc - ResultDamRes
56 Result = math.max(Result, 0.1)
57 if srcUser:HasBuffID(22000130_TWISTED_BOMB_INHERITS_THE_ORIGINAL_DMG_:MAX_STACK_0) and a == 0.5 then
58 a = 1
59 end
60 local A = -((MAtkFinal * (1 + MDamSpike) + MRefine) * damChangePer * (1 - RefineMDamReduc) * (1 + MDamIncrease)) * ele * a * (1 + skilllv_zd * 0.05) * Result
61 local AttrFunction = srcUser:GetProperty("AttrFunction")
62 local bitfunc = CommonFun.getBits(AttrFunction)
63 if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
64 A = 0
65 end
66 if CommonFun.checkAttrFunctionMiss(targetUser, srcUser) then
67 A = 0
68 end
69 if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
70 A = 0
71 end
72 if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
73 A = -1
74 end
75 if targetUser:DamageAlways1() then
76 A = -1
77 end
78 return A
79end