Skill #79007001

Butterfly Dance

Level 20

##1384000

Cost 1 | Attack

ID 79007001

Formulas & functions

CommonFun links

蝶之舞Lv 20 | buff | Buffs 44000050

Formula source

function CommonFun.calcBuff_360(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local BlindAtk = srcUser:GetProperty("BlindAtk")
  local BlindDef2 = targetUser:GetProperty("BlindDef")
  local BlindDam = 1 + BlindAtk - BlindDef2
  if BlindDam <= 0 then
    BlindDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = (1 + StateAtk) * (1 - StateDef2)
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = 0
  local Num1 = srcUser:GetRunePoint(41006)
  local SkillAttr = srcUser:GetCurSkillAtkAttr()
  if SkillAttr == 4 then
    A = (lv * a + b) * BlindDam * StateDam * Num1
  end
  if A <= 0 then
    return 0
  end
  return A
end
蝶之舞Lv 20 | buff | Buffs 119091

Formula source

function CommonFun.calcBuff_5000(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(a)
  local A = 0
  if Value ~= 0 then
    A = 100
  end
  return A
end
蝶之舞Lv 20 | damage

Formula source

function CommonFun.calcDamage_20(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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 380 or skillID == 383 or skillID == 384 then
    AtkPer = 0
  end
  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 A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 20)

{
  "id": 79007001,
  "NameZh": "蝶之舞",
  "Level": 20,
  "Icon": "skill_1384001",
  "Cost": 1,
  "Desc": [
    {
      "id": 1384000,
      "params": [
        120
      ]
    }
  ],
  "RollType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 5,
  "Fire_EP": 6,
  "Target_EP": 3,
  "Attack_EP": 0,
  "Logic": "SkillPointRange",
  "Logic_Param": {
    "count": 10,
    "interval": 0.5,
    "isCountTrap": 1,
    "no_select": 1,
    "range": 3,
    "range_num": 8,
    "trap_effect": "FuriouStorm_hit,LowRange_B2"
  },
  "Damage": [
    {
      "damChangePer": 10,
      "elementparam": 5,
      "type": 20
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Buff": {
    "enemy": [
      44000050
    ],
    "self": [
      119091
    ]
  },
  "Pvp_buff": {
    "enemy": [
      44000050
    ],
    "self": [
      119091
    ]
  },
  "CastAct": "skill_ready",
  "AttackAct": [
    "attack"
  ],
  "SE_cast": "Common/Magic_cast",
  "SE_attack": "Skill/FuriouStorm_atk",
  "SE_fire": "Skill/Arrow_fire",
  "SE_hit": "Skill/Arrow_hit",
  "description": {
    "chinesesimplified": "##1384000",
    "english": "##1384000",
    "german": "##1384000",
    "portuguese": "##1384000",
    "spanish": "##1384000"
  }
}