Level 1
##10000
Skill #25502001
Level 1
##10000
Formulas & functions
Formula source
function CommonFun.calcBuff_150(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local PoisonAtk = srcUser:GetProperty("PoisonAtk")
local PoisonDef2 = targetUser:GetProperty("PoisonDef")
local PoisonDam = 1 + PoisonAtk - PoisonDef2
if PoisonDam <= 0 then
PoisonDam = 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) * PoisonDam * StateDam * CommonFun.calcAttrPoisonRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endSkill JSON (Level 1)
{
"id": 25502001,
"NameZh": "腐化",
"Level": 1,
"Icon": "skill_10000",
"Cost": 1,
"Desc": [
{
"id": 10000,
"params": [
100
]
}
],
"SkillType": "Buff",
"Camps": "Enemy",
"Launch_Range": 3,
"Fire_EP": 3,
"Target_EP": 2,
"Attack_EP": 3,
"Logic": "SkillSelfRange",
"Logic_Param": {
"count": 10,
"interval": 1,
"isCountTrap": 1,
"max_count": 10,
"no_select": 1,
"range": 2,
"trap_effect": "PoisonFog_buff,LowRange_B"
},
"Buff": {
"enemy": [
159630
]
},
"Pvp_buff": {
"enemy": [
159630
]
},
"CastAct": "reading",
"AttackAct": [
"use_magic"
],
"description": {
"chinesesimplified": "##10000",
"english": "##10000",
"german": "##10000",
"portuguese": "##10000",
"spanish": "##10000"
}
}