Cat Transformation
Lvl: 5 Reborn CD: 5 sec Skill Delay: 2 sec SP: 160 Range: 6 Cast Time: 4

Resurrect a chosen teammate, restoring 90% HP and 25% SP

Lvl: 4 Reborn CD: 5 sec Skill Delay: 2 sec SP: 140 Range: 6 Cast Time: 4
• Resurrect a chosen teammate, restoring 80% HP and 20% SP
Lvl: 3 Reborn CD: 5 sec Skill Delay: 2 sec SP: 120 Range: 6 Cast Time: 4
• Resurrect a chosen teammate, restoring 70% HP and 15% SP
Lvl: 2 Reborn CD: 5 sec Skill Delay: 2 sec SP: 100 Range: 6 Cast Time: 4
• Resurrect a chosen teammate, restoring 60% HP and 10% SP
Lvl: 1 Reborn CD: 5 sec Skill Delay: 2 sec SP: 80 Range: 6 Cast Time: 4
• Resurrect a chosen teammate, restoring 50% HP and 5% SP

Team 5470

function CommonFun.calcBuff_5470(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local skilllv_1 = srcUser:GetLernedSkillLevel(1619_BLADE_SOUL:TUNA_PARTY)
  local HealEncPer = srcUser:GetProperty("HealEncPer")
  local skilllv_2 = srcUser:GetLernedSkillLevel(1632_BLADE_SOUL:OCEAN_SOUL)
  local Num1 = srcUser:GetRunePoint(153023_AESIR_TUNA_PARTY_S_MAX_HP_COEFFICIENT_3)
  local Num2 = srcUser:GetRunePoint(153036_AESIR_AFFECTED_BY_THE_ATTRIBUTE_HEALING_BONUS_TUNA_PARTY_S_EFFECT_IS_INCREASED_BY_5_OF_HEALING_BONUS)
  local LushFoxtail = 1
  if (srcUser:HasBuffID(42840_LUSH_FOX_GRASS_:MAX_STACK_0) or srcUser:HasBuffID(42960_GIANT_FOX_GRASS_ROD_:MAX_STACK_0)) and (srcUser:HasBuffID(42790_FRESH_TUNA_TALISMAN_:MAX_STACK_0) or srcUser:HasBuffID(43150_ORIGINAL_WILL_TALISMAN_:MAX_STACK_0)) then
    LushFoxtail = LushFoxtail + 0.05
  end
  local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
  if 10 <= RefineLv7 and srcUser:HasBuffID(90002607_LUSH_FOX_GRASS_R8_:MAX_STACK_0) then
    LushFoxtail = LushFoxtail + 0.1
  end
  if 10 <= RefineLv7 and srcUser:HasBuffID(42960_GIANT_FOX_GRASS_ROD_:MAX_STACK_0) then
    LushFoxtail = LushFoxtail + 0.1
  end
  local A = MaxHp * (skilllv_1 * 0.02 + 0.1 + skilllv_2 * 0.01 + Num1 * 0.03) * (1 + HealEncPer * Num2 * 0.05) * LushFoxtail
  return A
end

Team 6

function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * (a + c) + b
  if 0 < A or a == 0 then
    return A
  end
  if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
    return 0
  end
  if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
    local Vit = srcUser:GetProperty("Vit")
    local MAtk = srcUser:GetProperty("MAtk")
    local MAtkPer = srcUser:GetProperty("MAtkPer")
    local Refine = srcUser:GetProperty("Refine")
    local MRefine = srcUser:GetProperty("MRefine")
    local Def2 = targetUser:GetProperty("Def")
    local DefPer2 = targetUser:GetProperty("DefPer")
    local MDef2 = targetUser:GetProperty("MDef")
    local MDefPer2 = targetUser:GetProperty("MDefPer")
    local Vit2 = targetUser:GetProperty("Vit")
    local VitPer2 = targetUser:GetProperty("VitPer")
    local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
    local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
    local Int2 = targetUser:GetProperty("Int")
    local IntPer2 = targetUser:GetProperty("IntPer")
    local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
    local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
    local Str = srcUser:GetProperty("Str")
    local Dex = srcUser:GetProperty("Dex")
    local Luk = srcUser:GetProperty("Luk")
    local Atk = srcUser:GetProperty("Atk")
    local AtkPer = srcUser:GetProperty("AtkPer")
    local DamIncrease = srcUser:GetProperty("DamIncrease")
    local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
    local IgnoreDef = srcUser:GetProperty("IgnoreDef")
    if 1 <= IgnoreDef then
      IgnoreDef = 1
    end
    local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
    if 1 <= IgnoreMDef then
      IgnoreMDef = 1
    end
    local raceparam = 1
    local srcRace = srcUser.race
    local targetRace = 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
      targetRace = 2
    end
    if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      srcRace = 2
    end
    if nil == CommonFun.RaceProps[targetRace] then
      return 0
    end
    if nil == CommonFun.RaceProps[srcRace] then
      return 0
    end
    local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
    local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
    local raceparam = 1 + raceInc - raceRed
    if raceparam <= 0.1 then
      raceparam = 0.1
    end
    local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    if MAtkFinal <= AtkFinal then
      local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
      A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
    else
      local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
      A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
    end
  end
  local AttrFunction = srcUser:GetProperty("AttrFunction")
  local bitfunc = CommonFun.getBits(AttrFunction)
  if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
    A = 0
  end
  if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  return A
end

Friend 5470

function CommonFun.calcBuff_5470(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local skilllv_1 = srcUser:GetLernedSkillLevel(1619_BLADE_SOUL:TUNA_PARTY)
  local HealEncPer = srcUser:GetProperty("HealEncPer")
  local skilllv_2 = srcUser:GetLernedSkillLevel(1632_BLADE_SOUL:OCEAN_SOUL)
  local Num1 = srcUser:GetRunePoint(153023_AESIR_TUNA_PARTY_S_MAX_HP_COEFFICIENT_3)
  local Num2 = srcUser:GetRunePoint(153036_AESIR_AFFECTED_BY_THE_ATTRIBUTE_HEALING_BONUS_TUNA_PARTY_S_EFFECT_IS_INCREASED_BY_5_OF_HEALING_BONUS)
  local LushFoxtail = 1
  if (srcUser:HasBuffID(42840_LUSH_FOX_GRASS_:MAX_STACK_0) or srcUser:HasBuffID(42960_GIANT_FOX_GRASS_ROD_:MAX_STACK_0)) and (srcUser:HasBuffID(42790_FRESH_TUNA_TALISMAN_:MAX_STACK_0) or srcUser:HasBuffID(43150_ORIGINAL_WILL_TALISMAN_:MAX_STACK_0)) then
    LushFoxtail = LushFoxtail + 0.05
  end
  local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
  if 10 <= RefineLv7 and srcUser:HasBuffID(90002607_LUSH_FOX_GRASS_R8_:MAX_STACK_0) then
    LushFoxtail = LushFoxtail + 0.1
  end
  if 10 <= RefineLv7 and srcUser:HasBuffID(42960_GIANT_FOX_GRASS_ROD_:MAX_STACK_0) then
    LushFoxtail = LushFoxtail + 0.1
  end
  local A = MaxHp * (skilllv_1 * 0.02 + 0.1 + skilllv_2 * 0.01 + Num1 * 0.03) * (1 + HealEncPer * Num2 * 0.05) * LushFoxtail
  return A
end

Friend 6

function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * (a + c) + b
  if 0 < A or a == 0 then
    return A
  end
  if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
    return 0
  end
  if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
    local Vit = srcUser:GetProperty("Vit")
    local MAtk = srcUser:GetProperty("MAtk")
    local MAtkPer = srcUser:GetProperty("MAtkPer")
    local Refine = srcUser:GetProperty("Refine")
    local MRefine = srcUser:GetProperty("MRefine")
    local Def2 = targetUser:GetProperty("Def")
    local DefPer2 = targetUser:GetProperty("DefPer")
    local MDef2 = targetUser:GetProperty("MDef")
    local MDefPer2 = targetUser:GetProperty("MDefPer")
    local Vit2 = targetUser:GetProperty("Vit")
    local VitPer2 = targetUser:GetProperty("VitPer")
    local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
    local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
    local Int2 = targetUser:GetProperty("Int")
    local IntPer2 = targetUser:GetProperty("IntPer")
    local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
    local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
    local Str = srcUser:GetProperty("Str")
    local Dex = srcUser:GetProperty("Dex")
    local Luk = srcUser:GetProperty("Luk")
    local Atk = srcUser:GetProperty("Atk")
    local AtkPer = srcUser:GetProperty("AtkPer")
    local DamIncrease = srcUser:GetProperty("DamIncrease")
    local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
    local IgnoreDef = srcUser:GetProperty("IgnoreDef")
    if 1 <= IgnoreDef then
      IgnoreDef = 1
    end
    local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
    if 1 <= IgnoreMDef then
      IgnoreMDef = 1
    end
    local raceparam = 1
    local srcRace = srcUser.race
    local targetRace = 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
      targetRace = 2
    end
    if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      srcRace = 2
    end
    if nil == CommonFun.RaceProps[targetRace] then
      return 0
    end
    if nil == CommonFun.RaceProps[srcRace] then
      return 0
    end
    local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
    local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
    local raceparam = 1 + raceInc - raceRed
    if raceparam <= 0.1 then
      raceparam = 0.1
    end
    local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    if MAtkFinal <= AtkFinal then
      local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
      A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
    else
      local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
      A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
    end
  end
  local AttrFunction = srcUser:GetProperty("AttrFunction")
  local bitfunc = CommonFun.getBits(AttrFunction)
  if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
    A = 0
  end
  if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  return A
end

Team

{
  "id": 123130,
  "BuffDesc": "A tuna shield that can absorb a certain amount of damage.",
  "BuffIcon": "skillbuff_1619001",
  "BuffName": "Tuna Party",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AbsorbDamage",
    "AbsorbAmount": {
      "type": 5470
    }
  },
  "BuffStateID": 123130
}

Team

{
  "id": 131524,
  "BuffName": "Cat Transformation",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "Hp": {
      "a": 0.9,
      "b": 0,
      "type": 6
    },
    "Sp": {
      "a": 0,
      "b": 0.25,
      "c": 0,
      "type": 15
    },
    "type": "HSPChange"
  },
  "DeadCanAdd": 1,
  "BuffStateID": 131520
}

Team

{
  "id": 131525,
  "BuffName": "Cat Transformation (Tuna)",
  "BuffRate": {
    "Odds": {
      "a": 4122,
      "b": 20,
      "c": 0,
      "type": 8
    }
  },
  "BuffEffect": {
    "id": [
      123130
    ],
    "type": "AddBuff"
  },
  "DeadCanAdd": 1
}

Friend

{
  "id": 123130,
  "BuffDesc": "A tuna shield that can absorb a certain amount of damage.",
  "BuffIcon": "skillbuff_1619001",
  "BuffName": "Tuna Party",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AbsorbDamage",
    "AbsorbAmount": {
      "type": 5470
    }
  },
  "BuffStateID": 123130
}

Friend

{
  "id": 131524,
  "BuffName": "Cat Transformation",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "Hp": {
      "a": 0.9,
      "b": 0,
      "type": 6
    },
    "Sp": {
      "a": 0,
      "b": 0.25,
      "c": 0,
      "type": 15
    },
    "type": "HSPChange"
  },
  "DeadCanAdd": 1,
  "BuffStateID": 131520
}

Friend

{
  "id": 131525,
  "BuffName": "Cat Transformation (Tuna)",
  "BuffRate": {
    "Odds": {
      "a": 4122,
      "b": 20,
      "c": 0,
      "type": 8
    }
  },
  "BuffEffect": {
    "id": [
      123130
    ],
    "type": "AddBuff"
  },
  "DeadCanAdd": 1
}

Formula

{
  "CD": 5,
  "id": 4103005,
  "Buff": {
    "team": [
      131524,
      131525
    ],
    "friend": [
      131524,
      131525
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 4103000,
      "params": [
        90,
        25
      ]
    }
  ],
  "Icon": "skill_4103001",
  "Camps": "Friend",
  "Level": 5,
  "Logic": "SkillLockedTarget",
  "DescId": "##170709",
  "NameZh": "##169177",
  "CastAct": "skill_ready",
  "DelayCD": 2,
  "Fire_EP": 3,
  "ItemCost": [
    {
      "id": 12903,
      "count": 1020
    }
  ],
  "Pvp_buff": {
    "team": [
      131524,
      131525
    ],
    "friend": [
      131524,
      131525
    ]
  },
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 4,
    "type": 2
  },
  "SE_attack": "Skill/Resurrection",
  "SkillCost": {
    "1": {
      "num": 1,
      "itemID": 12521
    },
    "sp": 160
  },
  "SkillType": "Reborn",
  "Target_EP": 3,
  "Logic_Param": {
    "select": 1,
    "team_first": 1
  },
  "Launch_Range": 6,
  "AutoCondition": [
    {
      "type": 10
    }
  ],
  "ExtraMaxLevel": 0
}