Formula
function CommonFun.calcDamage_13201(srcUser, targetUser, params, damageParam, logger)
local Str1 = srcUser:GetProperty("Str")
local Num1 = srcUser:GetRunePoint(130110_AESIR_ATTRIBUTE_ATTACK_FROM_STR_3_WHEN_USING_AUTO_ATTACK_INCREASE_AUTO_ATTACK_BY)
local RuneDamage = Num1 * 0.03 + 1
local Str = Str1 * RuneDamage
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 + 5 * Str
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 = Str1 * 2 + math.floor(Str1 * Str1 / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
local BaseAtk1 = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
local AtkFinal = ((Atk - BaseAtk + NormalAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk1) * 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)
local WeaponType = srcUser:GetEquipedWeaponType()
local skilllv_1 = srcUser:GetLernedSkillLevel(179_KNIGHT:DOUBLE_ATTACK)
if WeaponType == 250 and CommonFun.IsInRate(skilllv_1 * 5, srcUser:GetRandom()) then
return A * 2, CommonFun.DamageType.ErLianJi
end
if A <= 1 then
return 1
end
return A
end
Formula
{
"CD": 0,
"id": 2650001,
"Cost": 0,
"Desc": [
{
"id": 43000,
"params": [
100
]
}
],
"Icon": "skill_10000",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillLockedTarget",
"Damage": [
{
"type": 13201,
"damChangePer": 1
}
],
"DescId": "##170885",
"DamTime": {
"type": 1,
"value": 1
},
"Fire_EP": 3,
"RollType": 1,
"AttackAct": [
"attack"
],
"Attack_EP": 2,
"SkillType": "Attack",
"Target_EP": 2,
"Launch_Type": 1,
"Launch_Range": 2
}