Self 5931
function CommonFun.calcBuff_5931(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local GemValue = srcUser:GetGemValue(153141_WHEN_LIFE_CONCENTRIC_IS_TRIGGERED_RESTORE_PERCENTAGE_OF_YOUR_LOST_HP)
local MaxHp = targetUser:GetProperty("MaxHp")
local Hp = targetUser:GetProperty("Hp")
local A = (MaxHp - Hp) * GemValue / 100000
if A <= 0 then
A = 0
end
return A
end
Master 5931
function CommonFun.calcBuff_5931(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local GemValue = srcUser:GetGemValue(153141_WHEN_LIFE_CONCENTRIC_IS_TRIGGERED_RESTORE_PERCENTAGE_OF_YOUR_LOST_HP)
local MaxHp = targetUser:GetProperty("MaxHp")
local Hp = targetUser:GetProperty("Hp")
local A = (MaxHp - Hp) * GemValue / 100000
if A <= 0 then
A = 0
end
return A
end
Self
{
"id": 131552,
"BuffName": "Life Concentric (HP Regen.)",
"BuffRate": {
"Odds": {
"a": 153141,
"type": 5000
}
},
"BuffEffect": {
"Hp": {
"type": 5931
},
"type": "HSPChange",
"calc_heal": 1
}
}
Master
{
"id": 131552,
"BuffName": "Life Concentric (HP Regen.)",
"BuffRate": {
"Odds": {
"a": 153141,
"type": 5000
}
},
"BuffEffect": {
"Hp": {
"type": 5931
},
"type": "HSPChange",
"calc_heal": 1
}
}
Formula
{
"id": 4119001,
"Buff": {
"self": [
131552
],
"master": [
131552
]
},
"Cost": 1,
"Icon": "skill_4108001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillPointRange",
"NameZh": "##151784",
"Fire_EP": 6,
"Pvp_buff": {
"self": [
131552
],
"master": [
131552
]
},
"AttackAct": [
"use_magic"
],
"Attack_EP": 3,
"SkillType": "HellPlant",
"Target_EP": 3,
"Logic_Param": {
"hit": 1,
"npcid": 806612,
"range": 8,
"addbuff": 131551,
"duration": 10,
"delaytime": 2,
"isNpcTrap": 1,
"max_count": 1,
"no_select": 1,
"isTimeTrap": 1,
"skill_delay": 1,
"dynamic_skill": 1
},
"Launch_Range": 8
}