Heal
Lvl: 1
Heal
Magic
Range: 9
Restore (84* Rounded ( (BaseLv+INT) /10) ) HP to self and allies. When the targets are undead monsters, the skill deals Holy Damage: 100% Healing Value/2
Formula
function CommonFun.calcDamage_5106(srcUser, targetUser, params, damageParam, logger)
local BaseLv = srcUser.BaseLv
local Int = srcUser:GetProperty("Int")
local HealEncPer = srcUser:GetProperty("HealEncPer")
local enemy = srcUser:IsEnemy(targetUser)
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
local race2 = targetUser.race
if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
race2 = 2
end
local DefAttr2 = targetUser:GetProperty("DefAttr")
local damChangePer = damageParam.damChangePer
local damChangePer1 = damageParam.damChangePer1
if damChangePer1 == nil then
damChangePer1 = 0
end
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local A = ((math.floor((BaseLv + Int) / 10) * damChangePer + 100) * (1 + HealEncPer) * (1 + BeHealEncPer2) + damChangePer1) * -1
if 0 <= A then
return -1
end
return A
end
Formula
{
"id": 70033001,
"Cost": 1,
"Desc": [
{
"id": 144000,
"params": [
84,
10,
100
]
}
],
"Icon": "skill_144001",
"Camps": "Friend|Enemy",
"Level": 1,
"Logic": "SkillNone",
"Damage": [
{
"type": 5106,
"damChangePer": 0.5
}
],
"DescId": "##171169",
"NameZh": "##160797",
"SE_hit": "Common/Heal",
"DamTime": {
"type": 1,
"value": 1
},
"Fire_EP": 3,
"SE_cast": "Common/Magic_cast",
"RollType": 2,
"AttackAct": [
"use_magic"
],
"Attack_EP": 3,
"SkillType": "Heal",
"Target_EP": 2,
"Logic_Param": {
"include_self": 1,
"select_target": 1
},
"Launch_Range": 9,
"NoTargetAutoCast": 1
}