Level 1
##10000
Skill #11000057
Level 1
##10000
Formulas & functions
Formula source
function CommonFun.calcBuff_140(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 - StateDef2
if StateDam <= 0 then
StateDam = 0
end
local A = (lv * a + b) * BlindDam * StateDam * CommonFun.calcAttrBurnRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcDamage_9000(srcUser, targetUser, params, damageParam, logger)
local Int = srcUser:GetProperty("Int")
local Vit = srcUser:GetProperty("Vit")
local MAtk = srcUser:GetProperty("MAtk")
local MAtkPer = srcUser:GetProperty("MAtkPer")
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
if 1 <= IgnoreMDef then
IgnoreMDef = 1
end
local MRefine = srcUser:GetProperty("MRefine")
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local count = params.hitedCount
if count <= 1 then
count = 1
end
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
local MDef2 = targetUser:GetProperty("MDef")
local MDefPer2 = targetUser:GetProperty("MDefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local Int2 = targetUser:GetProperty("Int")
local IntPer2 = targetUser:GetProperty("IntPer")
local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
local damChangePer = damageParam.damChangePer
local BaseMAtk = Int + math.floor(Int * Int / 100)
local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam2
local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * damChangePer * (1 - RefineMDamReduc) * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) / count
if A <= 1 then
return 1
end
return A
endSkill JSON (Level 1)
{
"id": 11000057,
"NameZh": "火柱枪",
"Level": 1,
"Icon": "skill_10000",
"Desc": [
{
"id": 10000,
"params": [
100
]
}
],
"RollType": 2,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 5,
"Fire_EP": 6,
"Target_EP": 3,
"Attack_EP": 2,
"Logic": "SkillLockedTarget",
"Damage": [
{
"damChangePer": 2,
"elementparam": 1,
"type": 9000
}
],
"DamTime": {
"type": 1,
"value": 1
},
"Buff": {
"enemy": [
300030
]
},
"Pvp_buff": {
"enemy": [
300030
]
},
"AttackAct": [
"attack"
],
"SE_cast": "Common/Magic_cast",
"SE_fire": "Skill/FireBall_fire",
"description": {
"chinesesimplified": "##10000",
"english": "##10000",
"german": "##10000",
"portuguese": "##10000",
"spanish": "##10000"
}
}