Level 1
Skill #140001
Ankle Snare
Formulas & functions
CommonFun links
CommonFun.calcBuff_160
buffEnemy
Ankle SnareLv 1-6 | buff | Buffs 90020, 90026, 232180, 90029
Formula source
function CommonFun.calcBuff_160(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local SlowAtk = srcUser:GetProperty("SlowAtk")
local SlowDef2 = targetUser:GetProperty("SlowDef")
local SlowDam = 1 + SlowAtk - SlowDef2
if SlowDam <= 0 then
SlowDam = 0
end
local StateAtk = srcUser:GetProperty("StateAtk")
local StateDef2 = targetUser:GetProperty("StateDef")
local StateDam = 1 + StateAtk - StateDef2
if StateDam <= 0 then
StateDam = 0
end
local A = (lv * a + b) * SlowDam * StateDam * CommonFun.calcAttrSlowRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endSkill JSON (Level 1)
{
"id": 140001,
"NameZh": "定位陷阱",
"Level": 1,
"Icon": "skill_117001",
"Cost": 1,
"SkillType": "Buff",
"Camps": "Enemy",
"Launch_Range": 1,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 3,
"Logic": "SkillSelfRange",
"Logic_Param": {
"no_select": 1,
"range": 1,
"range_num": 1,
"suspend_can_immune": 1
},
"Buff": {
"enemy": [
90020
],
"self": [
90021
]
},
"Pvp_buff": {
"enemy": [
90020
],
"self": [
90021
]
},
"AttackStatus": 1,
"AttackAct": [
"use_magic"
]
}