
Cyclone Shot
Lvl: 1
Attack
Physical
Range: 10
Fixed Cast Time: 1.7
Gathers power for 1 second, then deals high physical damage once to players in a 3x10 rectangular area in front of the caster.
Formula
function CommonFun.calcDamage_8037(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 AttrEffect = targetUser:GetProperty("AttrEffect")
local bits = CommonFun.getBits(AttrEffect)
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 LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local damChangePer = damageParam.damChangePer
local damChangePer1 = damageParam.damChangePer1
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)
local skilllv_1 = srcUser:GetLernedSkillLevel(127_KNIGHT:ELEMENTAL_ARROW)
local atk_add = 0
if 10 < skilllv_1 and (skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST) then
atk_add = Dex * ((skilllv_1 - 10) * 0.5)
end
local NormalAtk = 0
if skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST then
local NormalAtkAttr = srcUser:GetProperty("NormalAtk")
NormalAtk = NormalAtkAttr + 3 * Dex
end
local Kuangbao = 1
if srcUser:HasBuffID(6730_BERSERK_:MAX_STACK_0) then
Kuangbao = 2
end
local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
local AtkFinal = ((Atk - BaseAtk + NormalAtk + atk_add) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) + damChangePer1 * Kuangbao
if A <= 1 then
return 1
end
return A
end
Formula
{
"id": 72710001,
"Cost": 0,
"Desc": [
{
"id": 72710001
}
],
"Icon": "skill_137001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillForwardRect",
"Damage": [
{
"type": 8037,
"damChangePer": 15,
"elementparam": 1,
"damChangePer1": 75000
}
],
"DescId": "##171240",
"NameZh": "##169503",
"CastAct": "reading",
"DamTime": {
"type": 1,
"value": 1
},
"Fire_EP": 3,
"RollType": 1,
"AttackAct": [
"use_skill"
],
"Attack_EP": 6,
"Lead_Type": {
"CCT": 1.7,
"FCT": 0,
"type": 2
},
"SkillType": "Attack",
"Target_EP": 3,
"Logic_Param": {
"width": 3,
"distance": 10,
"range_num": 8,
"immune_taunt": 1,
"notcontroled": 1,
"forward_offset": 0
},
"Launch_Range": 10
}