ClassNovice
SkillFirst Aid
First Aid
Lvl: 2
Heal
CD: 10 sec
Range: 1
Quickly restores (100 + BaseLv*5) points of HP
Lvl: 1
Heal
CD: 10 sec
Range: 1
Quickly restores (100 + BaseLv*5) points of HP

Lvl: 2
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
  if srcUser:HasBuffID(43260_GIANT_WING_SHIELD_:MAX_STACK_0) then
    if RefineLv < 5 then
      Angel = Angel + RefineLv / 100
    elseif 5 <= RefineLv and RefineLv < 10 then
      Angel = Angel + 0.05 + RefineLv / 100
    elseif 10 <= RefineLv then
      Angel = Angel + 0.05 + 0.1 + RefineLv / 100
    end
  end
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, params, damageParam)
  local targetDefElement = targetUser:GetProperty("DefAttr")
  local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
  local race2 = targetUser.race
  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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 11_: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_:COLUCEO_HEAL then
    local skilllv_3 = srcUser:GetLernedSkillLevel(144_: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
    A = (math.floor((BaseLv + Int) / 10) * damChangePer + 100 + skilllv_1 * 50 + skilllv_2 * 50) * damChangePer1 * (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) 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 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
Raw
{
  "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,
    "riskid": 1001
  },
  "SkillType": "Heal",
  "Target_EP": 2,
  "Launch_Range": 1,
  "AutoCondition": [
    {
      "type": 3,
      "value": 100,
      "no_target": 1
    }
  ],
  "NoTargetAutoCast": 1
}