
Flowing Shadow Heart
Lvl: 1
LeadSkill
Physical
Range: 5
Facilitation skill. Slash forward quickly for 2 sec, inflicting Phy. DMG equal to [Flowing Blade Phase 1] x160% on all enemy units in front per 0.2 sec. The enemy at the end of the slash will received doubled DMG. Must equip a sword to cast. The damage is affected by Auto Attack DMG Inc. and Skill DMG Inc..
Formula
function CommonFun.calcDamage_16301(srcUser, targetUser, params, damageParam, logger)
local Str = srcUser:GetProperty("Str")
local Dex = srcUser:GetProperty("Dex")
local Luk = srcUser:GetProperty("Luk")
local Atk = srcUser:GetProperty("Atk")
local AtkPer = srcUser:GetProperty("AtkPer")
local NormalAtk = srcUser:GetProperty("NormalAtk")
NormalAtk = NormalAtk + 5 * Str
local DamIncrease = srcUser:GetProperty("DamIncrease")
local IgnoreDef = 0
local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
if targetUser.boss or targetUser.mini then
IgnoreDef = IgnoreDef1
else
IgnoreDef = IgnoreDef1 + IgnoreDef2
end
if 1 <= IgnoreDef then
IgnoreDef = 1
end
local Refine = srcUser:GetProperty("Refine")
local Def2 = targetUser:GetProperty("Def")
local DefPer2 = targetUser:GetProperty("DefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local AttrEffect2 = srcUser:GetProperty("AttrEffect")
local bits2 = CommonFun.getBits(AttrEffect2)
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
local AtkFinal = ((Atk - BaseAtk + NormalAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
local damChangePer = damageParam.damChangePer
local Agi = srcUser:GetProperty("Agi")
local AgiRune = srcUser:GetRunePoint(163012_AESIR_FOR_EVERY_10_POINTS_OF_AGI_AUTO_ATTACK_DMG_0_4)
local AgiDam = 1 + math.floor(Agi / 10) * AgiRune * 0.004
local Famous = 1
local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
if srcUser:HasBuffID(44360_RENOWNED_BLADE_MURAMASA_:MAX_STACK_0) then
Famous = Famous * (RefineLv7 * 0.01 + 1)
end
if srcUser:HasBuffID(44370_MONSTER_KNIFE_MURAMASA_:MAX_STACK_0) then
Famous = Famous * (RefineLv7 * 0.03 + 1)
end
local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * AgiDam * Famous
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 2013_SNIPER:FLOWING_BLADE_IV then
local Rune = srcUser:GetRunePoint(163021_AESIR_AUTO_ATTACK_FINAL_STYLE_FLOWING_BLADE_IV_DMG_5)
A = A * (1 + Rune * 0.05)
end
local GemValue = srcUser:GetGemValue(163072_FLOWING_SHADOW_HEART_DMG_X_PERCENTAGE)
if skillID == 2056_RANGER:FLOWING_SHADOW_HEART then
local NormalAtkDam = srcUser:GetProperty("NormalAtkDam")
local NormalAtkRes = targetUser:GetProperty("NormalAtkRes")
local NormalEnd = 1 + NormalAtkDam - NormalAtkRes
NormalEnd = math.max(NormalEnd, 0.1)
A = A * math.max(GemValue / 100000, 1) * NormalEnd
local targetid = targetUser:GetGuid()
local distance = srcUser:GetDistance(targetid)
if 3.5 <= distance then
A = A * 2
end
local Cri = srcUser:GetProperty("Cri")
local CriRes2 = targetUser:GetProperty("CriRes")
local CriDamPer = srcUser:GetProperty("CriDamPer")
local CriDefPer2 = targetUser:GetProperty("CriDefPer")
local Rate = Cri - CriRes2
if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
A = ((AtkFinal * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2)) * AgiDam * Famous * math.max(GemValue / 100000, 1) * NormalEnd
if 3.5 <= distance then
A = A * 2
end
return math.max(A * (1.5 + CriDamPer - CriDefPer2), 1), CommonFun.DamageType.Crit
end
end
if A <= 1 then
return 1
end
return A
end
Self
{
"id": 132890,
"BuffName": "Flowing Blade IV",
"BuffRate": {
"Odds": 100
}
}
Self
{
"id": 132891,
"BuffName": "Flowing Blade IV (deleted)",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"id": [
132890
],
"type": "DelBuff"
}
}
Self
{
"id": 133110,
"BuffDesc": "Reduces Received DMG",
"BuffIcon": "skillbuff_2056001",
"BuffName": "Flowing Shadow Heart - Defend",
"BuffRate": {
"Odds": {
"a": 2078,
"b": 100,
"c": 0,
"type": 8
}
},
"BuffType": {
"isgain": 1,
"isdisperse": 1
},
"IconType": 2,
"BuffEffect": {
"type": "AttrChange",
"ResultDamRes": {
"a": 2078,
"b": 0.08,
"c": 0,
"type": 8
}
}
}
Enemy
{
"id": 132701,
"BuffDesc": "Receives damage in 3 sec.",
"BuffIcon": "skillbuff_commonbuff",
"BuffName": "Void Slash",
"BuffRate": {
"Odds": 100
},
"IconType": 1,
"BuffEffect": {
"type": "AttrChange",
"limit_layer": 99,
"end_extra_buff": [
132702
]
}
}
Enemy
{
"id": 133100,
"BuffDesc": "Decrease moving speed",
"BuffIcon": "skillbuff_2056001",
"BuffName": "Flowing Shadow Heart - Slow",
"BuffRate": {
"Odds": {
"a": 2077,
"b": 100,
"c": 0,
"type": 8
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"IconType": 1,
"BuffEffect": {
"type": "AttrChange",
"MoveSpdPer": {
"a": 2077,
"b": -0.01,
"c": 0,
"type": 8
},
"IgnoreAttrControl": 1
}
}
Enemy
{
"id": 133111,
"BuffName": "Flowing Shadow Heart - Dmg Reduc.",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "AttrChange",
"DamReduc": {
"a": 0,
"b": 0,
"c": 163071,
"type": 5020
},
"limit_layer": 10
}
}
Enemy
{
"id": 133112,
"BuffName": "Flowing Shadow Heart - Unable to shift place",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"c": 21630090,
"type": 5040
}
},
"BuffEffect": {
"type": "LimitSkill",
"notid": [
175,
309,
483,
1283,
1606,
4013,
4205,
4209,
601,
1110,
3305,
4210,
3201,
2021,
2043,
2905,
2050,
1937,
1943,
2208,
2402,
2408,
2461,
2515,
2517,
2567,
2595,
2673,
2708,
2736,
2803,
2816
]
}
}
Enemy
{
"id": 133113,
"BuffName": "Flowing Shadow Heart - Unable to move",
"BuffRate": {
"Odds": {
"a": 0,
"b": 100,
"c": 21630090,
"type": 5040
}
},
"BuffEffect": {
"type": "StatusChange",
"NoMove": 1
},
"BuffStateID": 133113
}
Enemy
{
"id": 133114,
"BuffName": "Flowing Shadow Heart - Void Slash",
"BuffRate": {
"Odds": {
"a": 2040,
"b": 100,
"c": 0,
"type": 8
}
},
"BuffEffect": {
"id": [
132701
],
"Odds": 35,
"type": "AddBuff"
}
}

Shadow Warrior
Enemy
{
"id": 133115,
"BuffName": "Flowing Shadow Heart - Shadow Warrior",
"BuffRate": {
"Odds": {
"a": 0,
"b": 20,
"c": 132830,
"type": 5040
}
},
"BuffEffect": {
"id": 2018001,
"Odds": 100,
"type": "UseSkill",
"IsActive": 0
}
}
Formula
{
"id": 80102001,
"Buff": {
"self": [
133110,
132891
],
"enemy": [
133100,
133111,
133112,
133113,
133114,
133115
]
},
"Cost": 1,
"Desc": [
{
"id": 2056000,
"params": [
160
]
}
],
"Icon": "skill_2056001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillForwardRect",
"Damage": [
{
"type": 16301,
"damChangePer": 1.6
}
],
"DescId": "##2818716",
"NameZh": "##533858",
"SE_hit": "Skill/sword_hit",
"CastAct": "reading3_Ninja",
"DamTime": {
"type": 1,
"value": 1
},
"Fire_EP": 3,
"SE_cast": "Skill/ninja_liuyingyixin",
"Pvp_buff": {
"self": [
133110,
132891
],
"enemy": [
133100,
133111,
133112,
133113,
133114,
133115
]
},
"RollType": 1,
"SkillHit": 0.3,
"AttackAct": [
"attack"
],
"Attack_EP": 0,
"Lead_Type": {
"DCT": 2,
"type": 4
},
"SE_attack": "Skill/ninja_liuyingyixin",
"SkillType": "LeadSkill",
"Target_EP": 3,
"DamageType": 1,
"Logic_Param": {
"count": 10,
"width": 3,
"distance": 6,
"interval": 0.2,
"no_select": 1,
"range_num": 10,
"isCountTrap": 1,
"forward_offset": 0,
"del_hide_as_atk": 1
},
"Launch_Range": 5
}