Skill #23168001

Smog Spray

Sprays a poisonous smoke around the caster, making enemies caught in it take continuous Poison Phy.DMG and have a chance to be poisoned.

Level 1

##23168001

Cost 1 | Attack

ID 23168001

Formulas & functions

CommonFun links

抛洒毒雾Lv 1 | buff | Buffs 155812, 155813

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
抛洒毒雾Lv 1 | damage

Formula source

function CommonFun.calcDamage_1203(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 Refine = srcUser:GetProperty("Refine")
  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 damChangePer = damageParam.damChangePer
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
  local Num1 = srcUser:GetRunePoint(11021)
  local RuneDamage = 1
  if CommonFun.Shape.M == targetUser.shape then
    RuneDamage = 0.03 * Num1 + 1
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)) * RuneDamage
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 1)

{
  "id": 23168001,
  "NameZh": "抛洒毒雾",
  "Level": 1,
  "Icon": "skill_1103001",
  "Cost": 1,
  "Desc": [
    {
      "id": 23168001,
      "params": [
        100
      ]
    }
  ],
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 2,
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 2,
    "type": 2
  },
  "Logic": "SkillPointRange",
  "Logic_Param": {
    "count": 20,
    "interval": 1,
    "isCountTrap": 1,
    "max_count": 2,
    "no_select": 1,
    "notcontroled": 1,
    "range": 2,
    "trap_effect": "sfx_newcopy_duchi_prf"
  },
  "Damage": [
    {
      "damChangePer": 3,
      "elementparam": 10,
      "type": 1203
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Buff": {
    "enemy": [
      155812,
      155813
    ]
  },
  "Pvp_buff": {
    "enemy": [
      155812,
      155813
    ]
  },
  "CastAct": "reading",
  "AttackAct": [
    "use_skill2"
  ],
  "SE_cast": "Common/Skill_cast",
  "SE_attack": "Skill/PoisonFog_buff",
  "description": {
    "chinesesimplified": "##23168001",
    "english": "##23168001",
    "german": "##23168001",
    "portuguese": "##23168001",
    "spanish": "##23168001"
  }
}