Level 5
Skill #4015001
Blazar Trap
Level 4
Level 3
Level 2
Level 1
Formulas & functions
CommonFun links
CommonFun.calcBuff_100
buffEnemy
Blazar TrapLv 1-5 | buff | Buffs 131110
Formula source
function CommonFun.calcBuff_100(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local SilenceAtk = srcUser:GetProperty("SilenceAtk")
local SilenceDef2 = targetUser:GetProperty("SilenceDef")
local SlienceDam = 1 + SilenceAtk - SilenceDef2
if SlienceDam <= 0 then
SlienceDam = 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) * SlienceDam * StateDam * CommonFun.calcAttrSilenceRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endCommonFun.calcBuff_130
buffEnemy
Blazar TrapLv 1-5 | buff | Buffs 131111
Formula source
function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endSkill JSON (Level 5)
{
"id": 4015005,
"NameZh": "耀变体陷阱",
"Level": 5,
"Icon": "skill_4004001",
"Cost": 1,
"SkillType": "Buff",
"Camps": "Enemy",
"Launch_Range": 4,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 3,
"Logic": "SkillSelfRange",
"Logic_Param": {
"isCountTrap": 1,
"no_select": 1,
"range": 4,
"range_num": 15,
"suspend_can_immune": 1
},
"Buff": {
"enemy": [
131110,
131111
]
},
"Pvp_buff": {
"enemy": [
131110,
131111
]
},
"AttackAct": [
"use_magic"
],
"SE_cast": "Common/Magic_cast",
"SE_attack": "Skill/Spear_attack"
}