Level 10
##100550010
Skill #100550001
Stuns enemies around the caster with sheer majesty and has a chance to fear or freeze the surrounding enemies. The fear status will last for 3 secs, and the freeze status will last for 5 secs.
Level 10
##100550010
Level 9
##100550010
Level 8
##100550010
Level 7
##100550010
Level 6
##100550010
Level 5
##100550010
Level 4
##100550010
Level 3
##100550010
Level 2
##100550010
Level 1
##100550010
Formulas & functions
Formula source
function CommonFun.calcBuff_100(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local SilenceAtk = srcUser:GetProperty("SilenceAtk")
local SilenceDef2 = targetUser:GetProperty("SilenceDef")
local SlienceDam = 1 + SilenceAtk - SilenceDef2
if SlienceDam <= 0 then
SlienceDam = 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) * SlienceDam * StateDam * CommonFun.calcAttrSilenceRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endFormula 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
endSkill JSON (Level 10)
{
"id": 100550010,
"NameZh": "卖萌",
"Level": 10,
"Icon": "skill_100550001",
"Desc": [
{
"id": 100550010,
"params": [
400,
20
]
}
],
"RollType": 1,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 1.5,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 3,
"CD": 5,
"Logic": "SkillLockedTarget",
"Damage": [
{
"damChangePer": 4,
"elementparam": 2,
"type": 20
}
],
"DamTime": {
"type": 1,
"value": 1
},
"Buff": {
"enemy": [
100019600
]
},
"Pvp_buff": {
"enemy": [
100019600
]
},
"AttackAct": [
"attack"
],
"description": {
"chinesesimplified": "##100550010",
"english": "##100550010",
"german": "##100550010",
"portuguese": "##100550010",
"spanish": "##100550010"
}
}