Dark Night Storm

Dark Night Storm

Lv 10AttackMagic

Inflicts one stack of [Demon King's Wrath] and deals M.ATK*2360% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

CD: 2.5 sec
Range: 7
Cast: 4

Skill Levels

Lvl: 9
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 280
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*2260% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 8
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 260
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*2160% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 7
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 240
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*2060% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 6
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 220
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1960% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 5
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 200
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1860% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 4
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 180
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1760% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 3
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 160
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1660% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 2
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 140
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1560% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Lvl: 1
Attack
Magic
CD: 2.5 sec
Skill Delay: 1.5 sec
SP: 120
Range: 7
Cast Time: 4

• Inflicts one stack of [Demon King's Wrath] and deals M.ATK*1460% as Dark M.DMG per sec to all enemies within a specified circular area with a radius of 3m. Lasts 5s. When dealing DMG, a 20% chance to inflict [Dark] on the enemy. DMG to enemies with [Dark] increases by 50%.

Formula

1function CommonFun.calcDamage_76501(srcUser, targetUser, params, damageParam, logger)
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 RangeDam = srcUser:GetProperty("RangeDam")
13  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
14  local targetDefElement = targetUser:GetProperty("DefAttr")
15  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
16  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
17  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
18  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
19  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
20  local MDef2 = targetUser:GetProperty("MDef")
21  local MDefPer2 = targetUser:GetProperty("MDefPer")
22  local Vit2 = targetUser:GetProperty("Vit")
23  local VitPer2 = targetUser:GetProperty("VitPer")
24  local Int2 = targetUser:GetProperty("Int")
25  local IntPer2 = targetUser:GetProperty("IntPer")
26  local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
27  local RefineMDamReduc = CommonFun.calcRefineMDamReduc(srcUser, targetUser)
28  local damChangePer = damageParam.damChangePer
29  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
30  local BaseMAtk = Int + math.floor(Int * Int / 100)
31  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
32  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
33  if skillID == 2951_MERCHANT:DARK_NIGHT_STORM_MERCHANT:DARK_NIGHT_STORM or skillID == 2968_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE then
34    if skillID == 2968_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE then
35      local skilllv_fengbao = srcUser:GetLernedSkillLevel(2951_MERCHANT:DARK_NIGHT_STORM)
36      damChangePer = skilllv_fengbao * 1 + 13.6
37    end
38    local GemValue = srcUser:GetGemValue(216101_DARK_NIGHT_STORM_DMG_PERCENTAGE)
39    damChangePer = damChangePer * (1 + GemValue / 100000)
40    if srcUser:HasBuffID(90006134_40524_MORROC_EQUIPMENT_INFUSED_WITH_WEAPONS_1_FIFTH_TIER_:MAX_STACK_0) and targetUser:HasBuffID(139370_DEMON_KING_S_CHAIN_:MAX_STACK_0) then
41      damChangePer = damChangePer * 1.5
42    end
43    local StateEffect = targetUser:GetProperty("StateEffect")
44    local bits = CommonFun.getBits(StateEffect)
45    if bits[CommonFun.StateEffect.Dark] == 1 then
46      damChangePer = damChangePer * 1.5
47    end
48  end
49  if skillID == 2963_MERCHANT:DISCERNING_AURA_TRIGGER then
50    local skilllv_jinmo = srcUser:GetLernedSkillLevel(2952_MERCHANT:DEMON_KING_S_ARRAY)
51    damChangePer = skilllv_jinmo * 0.8 + 4.8
52  end
53  if skillID == 2965_MERCHANT:DARK_ULTIMATUM then
54    local skilllv_zhongjie = srcUser:GetLernedSkillLevel(2956_MERCHANT:END_OF_EVERYTHING)
55    damChangePer = skilllv_zhongjie * 3.6 + 6
56  end
57  if skillID == 2971_MERCHANT:DEMON_KING_S_WRATH_TRIGGER then
58    local skilllv_heian = srcUser:GetLernedSkillLevel(2950_MERCHANT:DARKNESS_DOMINATOR)
59    local Yichang = 1
60    if skilllv_heian == 7 then
61      local NumDebuff = targetUser:GetStatusNum()
62      if targetUser:HasBuffID(139314_DISCERNING_AURA_ENEMY_:MAX_STACK_0) then
63        NumDebuff = NumDebuff + 1
64      end
65      if targetUser:HasBuffID(139320_DEMON_S_REFLECTION_:MAX_STACK_0) then
66        NumDebuff = NumDebuff + 1
67      end
68      if targetUser:HasBuffID(139370_DEMON_KING_S_CHAIN_:MAX_STACK_0) then
69        NumDebuff = NumDebuff + 1
70      end
71      if 1 <= NumDebuff then
72        Yichang = NumDebuff * NumDebuff * 0.05 + 1
73      end
74    end
75    damChangePer = (0.6 + skilllv_heian * 0.6) * Yichang * (1 + Int * 0.04)
76    if skilllv_heian == 7 then
77      damChangePer = 4.8 * Yichang * (1 + Int * 0.04)
78    end
79  end
80  local A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * (1 - RefineMDamReduc) * damChangePer * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)
81  if skillID == 2951_MERCHANT:DARK_NIGHT_STORM_MERCHANT:DARK_NIGHT_STORM or skillID == 2968_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE_MERCHANT:DARK_STORM_DAMAGE then
82    A = A * (1 + RangeDam)
83    local StateEffect = targetUser:GetProperty("StateEffect")
84    local bits = CommonFun.getBits(StateEffect)
85    if bits[CommonFun.StateEffect.Dark] == 1 then
86      A = A * 1.5
87    end
88  end
89  if A <= 1 then
90    return 1
91  end
92  return A
93end
Preserved HTML snapshot from ROM Handbook