Skill #80017001

Enchanting Cat Scent

Enhance a target to make it unable to move or attack for [8df936]%s[-] seconds

Level 1

Yes, they [c]all lost their memories from yesterday[/c]!

Cost 1 | Attack

ID 80017001

Formulas & functions

CommonFun links

Enchanting Cat ScentLv 1-3 | buff | Buffs 70047004, 181120

Formula source

function CommonFun.calcBuff_170(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local ChaosAtk = srcUser:GetProperty("ChaosAtk")
  local ChaosDef2 = targetUser:GetProperty("ChaosDef")
  local ChaosDam = 1 + ChaosAtk - ChaosDef2
  if ChaosDam <= 0 then
    ChaosDam = 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) * ChaosDam * StateDam * CommonFun.calcAttrFearRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
Enchanting Cat ScentLv 1 | damage

Formula source

function CommonFun.calcDamage_8013(srcUser, targetUser, params, damageParam, logger)
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * 0.333
  if targetUser:GetNpcID() ~= 59126 then
    A = 1
  end
  return A, CommonFun.DamageType.Normal
end

Skill JSON (Level 1)

{
  "id": 80017001,
  "NameZh": "魅惑猫香",
  "Level": 1,
  "Icon": "skill_231001",
  "Cost": 1,
  "Desc": [
    {
      "id": 231000,
      "params": [
        10
      ]
    }
  ],
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 3,
  "Attack_EP": 3,
  "Lead_Type": {
    "ReadyTime": 2,
    "type": 1
  },
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 8013
    }
  ],
  "Buff": {
    "enemy": [
      70047004
    ]
  },
  "Pvp_buff": {
    "enemy": [
      70047004
    ]
  },
  "CastAct": "skill_ready",
  "AttackAct": [
    "use_skill"
  ],
  "description": {
    "chinesesimplified": "没错,他们[c][ffff00]全部都失去了昨天的记忆[-][/c]!!",
    "english": "Yes, they [c][ffff00]all lost their memories from yesterday[-][/c]!",
    "german": "Ja,sie [c][ffff00] alle haben keine Erinnernungen an gestern[-][/c]!",
    "portuguese": "Sim,todos eles[c][ffff00]perderam suas memórias de ontem[-][/c]!",
    "spanish": "¡Sí,[c][ffff00]todos perdieron sus recuerdos de ayer[-][/c]!"
  }
}