CommonFun.calcBuff_130731 mapped buffs · 69 skills
function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_13000 mapped uses
function CommonFun.calcBuff_1300(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_13010 mapped uses
function CommonFun.calcBuff_1301(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
local Buff = srcUser:HasBuffID(80000220)
if Buff == true then
A = (lv * a + b + 2) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
end
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_13020 mapped uses
function CommonFun.calcBuff_1302(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StunAtk = srcUser:GetProperty("StunAtk")
local StunDef2 = targetUser:GetProperty("StunDef")
local StunDam = 1 + StunAtk - StunDef2
if StunDam <= 0 then
StunDam = 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 skilllv = srcUser:GetLernedSkillLevel(c)
local A = (lv * a + b + skilllv * d) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
end