
Thump
Lvl: 1
Attack
Physical
Range: 2
Deals (ATK 200%) points of Phy. DMG to surrounding enemies within 2m, knocking them back and stunning them. Gains the Endure effect for 1 sec at the same time. Damage will increase by 100% when equipped with a Rifle Gun.
Formula
function CommonFun.calcDamage_17301(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 NormalAtk = srcUser:GetProperty("NormalAtk")
NormalAtk = NormalAtk + 3 * Dex
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 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 = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 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 A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 2005_SNIPER:HOMING_MISSILE or skillID == 2006_SNIPER:HOMING_MISSILE_FIRE_ON_FULL_POWER then
local GemValue = srcUser:GetGemValue(173052_HOMING_MISSILE_DMG_PERCENTAGE)
local GemDam = 1 + GemValue / 100000
A = A * GemDam
end
if skillID == 2200_STELLAR_HUNTER:STORM_GUST or skillID == 2199_STELLAR_HUNTER:THUMP then
local WeaponType = srcUser:GetEquipedWeaponType()
if WeaponType == 320 then
A = A * 2
end
end
if skillID == 2250_STELLAR_HUNTER:FIRE_RAIN or skillID == 818_HIGH_WIZARD:FIRE_RAIN then
local GemValue = srcUser:GetGemValue(173161_FIRE_RAIN_DMG_PERCENTAGE)
A = A * (1 + GemValue / 100000)
end
if A <= 1 then
return 1
end
return A
end
Self
{
"id": 120069,
"BuffName": "Thump (Endure)",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"type": "AttrChange",
"NoStiff": 1,
"NoEffectMove": 1
}
}
Enemy
{
"id": 96160,
"BuffDesc": "Stunning: disable movement and attack",
"BuffIcon": "skillbuff_212001",
"BuffName": "Hammerfall [Stunning]",
"BuffRate": {
"Odds": {
"a": 10,
"b": 20,
"type": 130
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"IconType": 1,
"BuffEffect": {
"type": "StatusChange",
"NoAct": 1,
"AttrEffect": [
3,
4
],
"StateEffect": "4_Dizzy"
},
"BuffStateID": 80010
}
Formula
{
"CD": 0,
"id": 2199001,
"Buff": {
"self": [
120069
],
"enemy": [
96160
]
},
"Cost": 0,
"Desc": [
{
"id": 2199000,
"params": [
200
]
}
],
"Icon": "skill_12001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillSelfRange",
"Damage": [
{
"type": 17301,
"damChangePer": 2
}
],
"DescId": "##1244705",
"NameZh": "##118311",
"DamTime": {
"type": 1,
"value": 2
},
"Fire_EP": 3,
"Pvp_buff": {
"self": [
120069
],
"enemy": [
96160
]
},
"RollType": 1,
"AttackAct": [
"whack"
],
"Attack_EP": 2,
"SE_attack": "Common/sfx_skill_player_thump_attack_01",
"SkillType": "Attack",
"Target_EP": 3,
"HitEffects": [
{
"type": 1,
"speed": 15,
"distance": 4,
"direction": "back"
}
],
"Logic_Param": {
"range": 2,
"ignoreHit": 1
},
"Launch_Range": 2,
"Fire_EP_Weapon": 1
}