Skill #40007001

I'm A Kitty Spirit

Level 1

##40007000

CD 20s | Attack

ID 40007001

Formulas & functions

CommonFun links

I'm A Kitty SpiritLv 1 | buff | Buffs 120210

Formula source

function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local StunAtk = srcUser:GetProperty("StunAtk")
  local StunDef2 = targetUser:GetProperty("StunDef")
  local StunDam = 1 + StunAtk - StunDef2
  if StunDam <= 0 then
    StunDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
I'm A Kitty SpiritLv 1 | damage

Formula source

function CommonFun.calcDamage_8000(srcUser, targetUser, params, damageParam, logger)
  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 IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  if targetUser.boss or targetUser.mini then
    IgnoreDef = IgnoreDef1
  else
    IgnoreDef = IgnoreDef1 + IgnoreDef2
  end
  if 1 <= IgnoreDef then
    IgnoreDef = 1
  end
  local BaseLv = targetUser.BaseLv
  local WeaponType = srcUser:GetEquipedWeaponType()
  local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
  local Refine = srcUser:GetProperty("Refine")
  local damChangePer = damageParam.damChangePer
  local Def2 = targetUser:GetProperty("Def")
  local DefPer2 = targetUser:GetProperty("DefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local AttrEffect2 = srcUser:GetProperty("AttrEffect")
  local bits2 = CommonFun.getBits(AttrEffect2)
  local AtkFinal = math.floor(BaseLv, BaseLv * 3) * damChangePer
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * (1 + DamIncrease) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 1)

{
  "id": 40007001,
  "NameZh": "我辈乃喵之魂",
  "Level": 1,
  "Icon": "skill_163001",
  "Desc": [
    {
      "id": 40007000,
      "params": [
        120
      ]
    }
  ],
  "RollType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 3,
  "Attack_EP": 3,
  "CD": 20,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "damChangePer": 1.2,
      "type": 8000
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "AttackEffects": [
    {
      "direction": "forward",
      "distance": 4,
      "speed": 20,
      "type": 1
    }
  ],
  "Buff": {
    "enemy": [
      120210
    ]
  },
  "Pvp_buff": {
    "enemy": [
      120210
    ]
  },
  "AttackAct": [
    "attack"
  ],
  "SE_attack": "Skill/MagnumBreak",
  "description": {
    "chinesesimplified": "##40007000",
    "english": "##40007000",
    "german": "##40007000",
    "portuguese": "##40007000",
    "spanish": "##40007000"
  }
}