Skill #77520001

New Poison

Level 9

##10000

Buff

ID 77520001

Formulas & functions

CommonFun links

New PoisonLv 9 | buff | Buffs 172030

Formula source

function CommonFun.calcBuff_150(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local PoisonAtk = srcUser:GetProperty("PoisonAtk")
  local PoisonDef2 = targetUser:GetProperty("PoisonDef")
  local PoisonDam = 1 + PoisonAtk - PoisonDef2
  if PoisonDam <= 0 then
    PoisonDam = 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) * PoisonDam * StateDam * CommonFun.calcAttrPoisonRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end

Skill JSON (Level 9)

{
  "id": 77520001,
  "NameZh": "新毒",
  "Level": 9,
  "Icon": "skill_1103001",
  "Desc": [
    {
      "id": 10000,
      "params": [
        100
      ]
    }
  ],
  "SkillType": "Buff",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 2,
  "Attack_EP": 3,
  "Logic": "SkillLockedTarget",
  "Buff": {
    "enemy": [
      172030
    ]
  },
  "Pvp_buff": {
    "enemy": [
      172030
    ]
  },
  "CastAct": "reading",
  "AttackAct": [
    "use_skill"
  ],
  "SE_cast": "Common/Skill_cast",
  "SE_attack": "Skill/PoisonFog_buff",
  "description": {
    "chinesesimplified": "##10000",
    "english": "##10000",
    "german": "##10000",
    "portuguese": "##10000",
    "spanish": "##10000"
  }
}