Lvl: 1
Heal
CD: 10 sec
Range: 1
• Quickly restores (100 + BaseLv*5) points of HP
Formula
function CommonFun.calcDamage_5101(srcUser, targetUser, params, damageParam, logger)
local BaseLv = srcUser.BaseLv
local Int = srcUser:GetProperty("Int")
local HolyAtk = srcUser:GetProperty("HolyAtk")
local HealEncPer = srcUser:GetProperty("HealEncPer")
local enemy = srcUser:IsEnemy(targetUser)
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local skilllv_1 = srcUser:GetLernedSkillLevel(50034_:FIRST_AID_II)
local skilllv_2 = srcUser:GetLernedSkillLevel(50035_:FIRST_AID_III)
local Num1 = srcUser:GetRunePoint(51001_AESIR_HEALING_DONE_BY_HEAL_2)
local Num2 = srcUser:GetRunePoint(51011)
local RuneDamage = Num1 * 0.02 + Num2 * 0.02 + 1
local c = 1
if srcUser:HasBuffID(51580_LADY_WHITE_SNAKE_CARD_:MAX_STACK_0) then
c = 1.1
end
local RefineLv = srcUser:GetEquipedRefineLv(1)
local Angel = 1
if srcUser:HasBuffID(40430_SACRED_MISSION_:MAX_STACK_0) then
Angel = 1 + RefineLv / 100
end
if srcUser:HasBuffID(90001813_SACRED_MISSION_R4_:MAX_STACK_0) then
if 5 <= RefineLv and RefineLv < 10 then
Angel = Angel + 0.03
elseif 10 <= RefineLv then
Angel = Angel + 0.03 + 0.07
end
end
if srcUser:HasBuffID(90001816_SACRED_MISSION_R7_:MAX_STACK_0) then
if 5 <= RefineLv and RefineLv < 10 then
Angel = Angel + 0.02
elseif 10 <= RefineLv then
Angel = Angel + 0.02 + 0.03
end
end
local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_SHIELD)
if equipRing.id == 42579 or equipRing.id == 142579 then
if 5 > equipRing.refinelv then
Angel = Angel + equipRing.refinelv / 100
elseif 5 <= equipRing.refinelv and 10 > equipRing.refinelv then
Angel = Angel + 0.05 + equipRing.refinelv / 100
elseif 10 <= equipRing.refinelv then
Angel = Angel + 0.05 + 0.1 + equipRing.refinelv / 100
end
end
local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_SHIELD)
if equipRingSD.id == 42579 or equipRingSD.id == 142579 then
if 5 > equipRingSD.refinelv then
Angel = Angel + equipRingSD.refinelv / 100 * equipRingSD.quench_per / 100
elseif 5 <= equipRingSD.refinelv and 10 > equipRingSD.refinelv then
Angel = Angel + (0.05 + equipRingSD.refinelv / 100) * equipRingSD.quench_per / 100
elseif 10 <= equipRingSD.refinelv then
Angel = Angel + (0.15000000000000002 + equipRingSD.refinelv / 100) * equipRingSD.quench_per / 100
end
end
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
local race2 = targetUser.race
if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
race2 = 3
end
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 AttrEffect = targetUser:GetProperty("AttrEffect2")
local bits = CommonFun.getBits(AttrEffect)
local damChangePer = damageParam.damChangePer
local damChangePer1 = damageParam.damChangePer1
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local A = ((math.floor((BaseLv + Int) / 10) * damChangePer + 100 + skilllv_1 * 50 + skilllv_2 * 50) * (1 + HealEncPer) * (1 + BeHealEncPer2) + damChangePer1) * -1 * (1 + HolyAtk) * RuneDamage * c * Angel
local mapid, maptype = srcUser:GetMapInfo()
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 11_NOVICE:FIRST_AID then
local BaseLv = srcUser.BaseLv
A = (100 + BaseLv * 5 + skilllv_1 * 200 + skilllv_2 * 200) * (1 + HealEncPer) * (1 + BeHealEncPer2) * -1 * (1 + HolyAtk)
end
if skillID == 1224_THIEF:COLUCEO_HEAL_THIEF:COLUCEO_HEAL then
local skilllv_3 = srcUser:GetLernedSkillLevel(144_KNIGHT:HEAL)
local damChangePer = 4
if skilllv_3 <= 10 then
damChangePer = 4 + skilllv_3 * 8
elseif 10 < skilllv_3 then
damChangePer = 64 + skilllv_3 * 2
end
local MaxHp = targetUser:GetProperty("MaxHp")
local Hp = targetUser:GetProperty("Hp")
local Num = srcUser:GetRunePoint(54030_AESIR_COLUCEO_HEAL_GAINS_EXTRA_HEALING_EQUAL_TO_2_OF_TARGET_S_LOST_HP)
local RuneDamage1 = (MaxHp - Hp) * 0.02 * Num
local GemValue = srcUser:GetGemValue(51011_COLUCEO_HEAL_S_CURE_PERCENTAGE)
local GemDam = 1 + GemValue / 100000
local PvP_ratio = 1
if maptype == PVP_MAPS then
PvP_ratio = 4
end
A = (math.floor((BaseLv + Int) / 10) * damChangePer + 100 + skilllv_1 * 50 + skilllv_2 * 50) * damChangePer1 * PvP_ratio * (1 + HealEncPer) * (1 + BeHealEncPer2) * -1 * (1 + HolyAtk) * RuneDamage * c * Angel * GemDam - RuneDamage1 * (1 + BeHealEncPer2)
end
if targetUser:HasBuffID(41100050_HEALING_RECEIVED_:MAX_STACK_0) then
local MaxHp = targetUser:GetProperty("MaxHp")
local Hp = targetUser:GetProperty("Hp")
local Num1 = targetUser:GetBuffLayer(41100050_HEALING_RECEIVED_:MAX_STACK_0)
if Hp < MaxHp * (0.15 * Num1) then
A = A * 3
end
end
local RateNum = 0
local profressionID = srcUser:GetProfressionID()
if srcUser:HasBuffID(35381_47160_ANGEL_WING_FEATHER_:MAX_STACK_0) and (profressionID == 51_ACOLYTE or profressionID == 52_PRIEST or profressionID == 53_HIGH_PRIEST or profressionID == 54_ARCHBISHOP or profressionID == 55_SAINT or profressionID == 615_NIDHOGG) then
RateNum = 15
end
local HealtoDam = targetUser:GetBuffLevel(129100_CURE_BARRIER_:MAX_STACK_0)
local DamRatio = 1
if targetUser:HasBuffID(129100_CURE_BARRIER_:MAX_STACK_0) then
DamRatio = -0.1 * HealtoDam
end
if skillID == 1224_THIEF:COLUCEO_HEAL_THIEF:COLUCEO_HEAL and srcUser:HasBuffID(22000530_COLUCEO_HEAL_DOES_NOT_SHIFT_OR_CONVERSE_:MAX_STACK_0) then
DamRatio = 1
if 0 < A then
A = 0
end
end
local HealReduce = targetUser:GetBuffLevel(136500_10783_:MAX_STACK_0)
if targetUser:HasBuffID(136500_10783_:MAX_STACK_0) then
DamRatio = 1 - (0.2 + 0.03 * HealReduce)
end
if enemy then
if DefAttr2 == 9 then
return A / 2 * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 * -1 * (1 + MDamIncrease)
else
return 0, 0
end
elseif DefAttr2 == 9 or bits[CommonFun.AttrEffect.PoisinDamNoUse] == 1 then
return -1
elseif CommonFun.IsInRate(RateNum, srcUser:GetRandom()) then
return A * 2 * DamRatio
else
return A * DamRatio
end
end
Formula
{
"CD": 10,
"id": 11002,
"Cost": 0,
"Desc": [
{
"id": 229000,
"params": [
100
]
}
],
"Icon": "skill_11001",
"Camps": "Friend",
"Level": 1,
"Logic": "SkillNone",
"Damage": [
{
"type": 5101,
"damChangePer": 0,
"elementparam": 6,
"damChangePer1": 0
}
],
"DescId": "##1244702",
"NameZh": "##169656",
"SE_hit": "Common/Heal",
"DamTime": {
"type": 1,
"value": 1
},
"Fire_EP": 3,
"SE_cast": "Common/Magic_cast",
"AttackAct": [
"use_magic"
],
"Attack_EP": 3,
"Contidion": {
"menu": 16
},
"SkillType": "Heal",
"Target_EP": 2,
"Launch_Range": 1,
"AutoCondition": [
{
"type": 3,
"value": 100,
"no_target": 1
}
],
"NoTargetAutoCast": 1
}