
Streamer of Fallen Night
Lvl: 1
Attack
Magic
Range: 99
Nidhogg attacks one enemy, dealing M.ATK*4200% as Dark M.DMG to the target and enemies within 3m. A 20% chance to reduce final healing of all enemies by 50% for 5s. When Streamer of Fallen Night deals DMG, there's a 25% chance to turn the target's armor type to Holy for 5s. You can choose to disable this effect.
Formula
function CommonFun.calcDamage_61501(srcUser, targetUser, params, damageParam, logger)
local Int = srcUser:GetProperty("Int")
local Vit = srcUser:GetProperty("Vit")
local MAtk = srcUser:GetProperty("MAtk")
local MAtkPer = srcUser:GetProperty("MAtkPer")
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
if 1 <= IgnoreMDef then
IgnoreMDef = 1
end
local MRefine = srcUser:GetProperty("MRefine")
local RangeDam = srcUser:GetProperty("RangeDam")
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
local MDef2 = targetUser:GetProperty("MDef")
local MDefPer2 = targetUser:GetProperty("MDefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local Int2 = targetUser:GetProperty("Int")
local IntPer2 = targetUser:GetProperty("IntPer")
local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
local damChangePer = damageParam.damChangePer
local BaseMAtk = Int + math.floor(Int * Int / 100)
local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2
local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
local skilllv = srcUser:GetLernedSkillLevel(2538_HIGH_PRIEST:MAGICAL_DRAGON_SCALE)
local Sp = srcUser:GetProperty("Sp")
local MaxSp = srcUser:GetProperty("MaxSp")
local Ratio = 1
if 0 < skilllv then
Ratio = 1 + Sp / MaxSp * skilllv * 0.1
end
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 2543_HIGH_PRIEST:STREAMER_OF_FALLEN_NIGHT then
local skilllv_bd = srcUser:GetLernedSkillLevel(2532_HIGH_PRIEST:STREAMER_OF_FALLEN_NIGHT)
damChangePer = skilllv_bd * 3.2 + 10
end
local GemValue = srcUser:GetGemValue(200101_EVERY_10_POINTS_OF_VIT_CAUSES_STREAMER_OF_FALLEN_NIGHT_DMG_PERCENTAGE)
local GemDam = 1 + math.floor(Vit / 10) * GemValue / 100000
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)) * (1 + RangeDam) * Ratio * GemDam
if A <= 1 then
return 1
end
return A
end
Enemy 7821
function CommonFun.calcBuff_7821(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local skilllv_1 = srcUser:GetLernedSkillLevel(a)
local A = skilllv_1 * b + c
return A
end
Enemy
{
"id": 136500,
"BuffDesc": "Reduce the Healing effect",
"BuffIcon": "skillbuff_2532001",
"BuffName": "10783",
"BuffRate": {
"Odds": 20
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"IconType": 1,
"BuffEffect": {
"type": "HealReduce",
"damRatio": {
"a": 2532,
"b": 0.03,
"c": 0.2,
"type": 7821
},
"source_skill": 2532
},
"BuffStateID": 136500
}
Enemy
{
"id": 136501,
"BuffDesc": "Reduce Atk and M.Atk",
"BuffIcon": "skillbuff_2532001",
"BuffName": "10784",
"BuffRate": {
"Odds": {
"a": 2539,
"b": 100,
"c": 0,
"type": 8
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 0
},
"IconType": 1,
"BuffEffect": {
"type": "AttrChange",
"AtkPer": {
"a": 2539,
"b": -0.01,
"c": 0,
"type": 8
},
"MAtkPer": {
"a": 2539,
"b": -0.01,
"c": 0,
"type": 8
},
"MDefPer": {
"a": 2539,
"b": -0.01,
"c": 0,
"type": 8
},
"limit_layer": 5
}
}
Enemy
{
"id": 136502,
"BuffDesc": "Armor type turns to Holy",
"BuffIcon": "skillbuff_2532001",
"BuffName": "堕夜流光概率转换铠甲",
"BuffRate": {
"Odds": {
"a": 0,
"b": 25,
"c": 136503,
"type": 5040
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"IconType": 1,
"BuffEffect": {
"type": "BattleAttr",
"DefAttr": 6,
"atk_def_priority": 1
}
}
Formula
{
"id": 2543001,
"Buff": {
"enemy": [
136500,
136501,
136502
]
},
"Cost": 1,
"Desc": [
{
"id": 2532000,
"params": [
4200,
50
]
}
],
"Icon": "skill_2532001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillLockedTarget",
"Damage": [
{
"type": 61501,
"damChangePer": 0,
"elementparam": 7
}
],
"DescId": "##42531605",
"NameZh": "##1264721",
"CastAct": "reading",
"DamTime": {
"type": 1,
"value": 3
},
"Fire_EP": 3,
"Pvp_buff": {
"enemy": [
136500,
136501,
136502
]
},
"RollType": 2,
"AttackAct": [
"use_skill"
],
"Attack_EP": 3,
"SE_attack": "Skill/Skill_Hero_Nidhogg_Attack_01",
"SkillType": "Attack",
"Target_EP": 3,
"DamageType": 2,
"Logic_Param": {
"emit": {
"type": 2,
"effect": "sfx_herondhg_slcj_bullet_prf",
"duration": 0.4,
"multi_target": true,
"ClearTrailMap": [
"Trail (1)",
"Trail (2)"
],
"controlfactor": [
-3,
5
]
},
"allSuperUse": 1,
"passive_fire": 1,
"noNeedLearned": 1
},
"Launch_Range": 99
}