
Shattered Earth
Lvl: 10
Attack
Physical
CD: 5 sec
Range: 4
Deal Earth-type DMG of ATK * 900% to all the enemy units within the range with a 60% chance of slowing them for 3 seconds and a 30% chance of stunning them for 3 seconds
Lvl: 9
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 850% to all the enemy units within the range with a 57% chance of slowing them for 3 seconds and a 28% chance of stunning them for 3 seconds
Lvl: 8
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 800% to all the enemy units within the range with a 54% chance of slowing them for 3 seconds and a 26% chance of stunning them for 3 seconds
Lvl: 7
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 750% to all the enemy units within the range with a 51% chance of slowing them for 3 seconds and a 24% chance of stunning them for 3 seconds
Lvl: 6
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 700% to all the enemy units within the range with a 48% chance of slowing them for 3 seconds and a 22% chance of stunning them for 3 seconds
Lvl: 5
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 650% to all the enemy units within the range with a 45% chance of slowing them for 3 seconds and a 20% chance of stunning them for 3 seconds
Lvl: 4
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 600% to all the enemy units within the range with a 42% chance of slowing them for 3 seconds and a 18% chance of stunning them for 3 seconds
Lvl: 3
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 550% to all the enemy units within the range with a 39% chance of slowing them for 3 seconds and a 16% chance of stunning them for 3 seconds
Lvl: 2
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 500% to all the enemy units within the range with a 36% chance of slowing them for 3 seconds and a 14% chance of stunning them for 3 seconds
Lvl: 1
Attack
Physical
CD: 5 sec
Range: 4
• Deal Earth-type DMG of ATK * 450% to all the enemy units within the range with a 33% chance of slowing them for 3 seconds and a 12% chance of stunning them for 3 seconds
Formula
function CommonFun.calcDamage_21(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 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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
local skilllv_1 = srcUser:GetLernedSkillLevel(127_KNIGHT:ELEMENTAL_ARROW)
local atk_add = 0
if 10 < skilllv_1 and (skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST) then
atk_add = Dex * ((skilllv_1 - 10) * 0.5)
end
local NormalAtk = 0
if skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST then
local NormalAtkAttr = srcUser:GetProperty("NormalAtk")
NormalAtk = NormalAtkAttr + 3 * Dex
end
local SpAtk = 0
if srcUser:HasBuffID(131096_ATTACK_REDUCES_HP_AND_SP_:MAX_STACK_0) and (skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST) then
local Sp = srcUser:GetProperty("Sp")
SpAtk = Sp
end
local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
local AtkFinal = (((Atk - BaseAtk + NormalAtk + atk_add) * (1 + AtkPer) + SpAtk) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local targetid = targetUser:GetGuid()
local distance = srcUser:GetDistance(targetid)
local skilllv_1 = srcUser:GetLernedSkillLevel(133_KNIGHT:VULTURE_S_EYE)
local DisDam = 1
if 10 < skilllv_1 then
DisDam = 1 + distance / 7.5 * (skilllv_1 - 10) * 0.1
if srcUser:HasBuffID(131080_UNLIMITED_STARS_:MAX_STACK_0) then
DisDam = 1 + (skilllv_1 - 10) * 0.1
end
DisDam = math.min(DisDam, 2)
end
local profressionID = srcUser:GetProfressionID()
if srcUser:HasBuffID(56712_11925_:MAX_STACK_0) and (profressionID == 42_HUNTER or profressionID == 43_SNIPER or profressionID == 44_RANGER or profressionID == 45_STELLAR_HUNTER or profressionID == 715_FENRIR) then
DisDam = DisDam + distance / 7.5 * 0.1
end
local Injured = 1
if bits[CommonFun.AttrEffect.NormalSkillDam] == 1 then
Injured = 1.3
end
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
if skillID == 300_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST or skillID == 113_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST_KNIGHT:STORM_GUST or skillID == 252_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST_LORD_KNIGHT:STORM_GUST then
local guid = srcUser:GetGuid()
local Debuff_Layer_1 = targetUser:GetBuffLayerByIDAndFromID(96082, guid)
local Debuff_Layer_2 = targetUser:GetBuffLayerByIDAndFromID(96083, guid)
local sw_dam = math.max(Debuff_Layer_1, Debuff_Layer_2) * 0.06 + 1
A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * DisDam * Injured * sw_dam
end
if skillID == 404_RUNE_KNIGHT:FEAR_BREEZE_AUTO_ATTACK then
local GemValue = srcUser:GetGemValue(41131_FEAR_BREEZE_DAMAGE_PERCENTAGE)
A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) * (1 + GemValue / 100000) - Vit2 * (1 + VitPer2)
local CriDamPer = srcUser:GetProperty("CriDamPer")
local CriDefPer2 = targetUser:GetProperty("CriDefPer")
local GemRate = srcUser:GetGemValue(41132_FEAR_BREEZE_HAS_A_PERCENTAGE_CHANCE_TO_CRITICALLY_HIT_AND_DEALS_DAMAGE_BASED_ON_YOUR_CRIT_DMG)
local Rate = GemRate / 1000
if srcUser:HasBuffID(90004254_OVERLORD_CRAB_BOW_1_T5_:MAX_STACK_0) and srcUser:HasBuffID(131080_UNLIMITED_STARS_:MAX_STACK_0) then
Rate = Rate + 30
end
if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
A = (AtkFinal * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) * (1 + GemValue / 100000) - Vit2 * (1 + VitPer2)
return A * (1.5 + CriDamPer - CriDefPer2), CommonFun.DamageType.Crit
end
end
if A <= 1 then
return 1
end
return A
end
Enemy
{
"id": 100025000,
"BuffName": "Shattered Earth",
"BuffRate": {
"Odds": {
"a": 2,
"b": 10,
"type": 130
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"NoAct": 1,
"AttrEffect": [
3,
4
],
"StateEffect": "4_Dizzy"
},
"BuffStateID": 80010
}
Enemy
{
"id": 100025001,
"BuffName": "Shattered Earth",
"BuffRate": {
"Odds": {
"a": 3,
"b": 30,
"type": 1
}
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "AttrChange",
"MoveSpdPer": -0.3
}
}
Formula
{
"CD": 5,
"id": 100750010,
"Buff": {
"enemy": [
100025000,
100025001
]
},
"Desc": [
{
"id": 100750010,
"params": [
900,
60,
30
]
}
],
"Icon": "skill_100620001",
"Camps": "Enemy",
"Level": 10,
"Logic": "SkillPointRange",
"Damage": [
{
"type": 21,
"damChangePer": 9,
"elementparam": 2
}
],
"DescId": "##171498",
"NameZh": "##154713",
"DamTime": {
"type": 1,
"value": 3
},
"Fire_EP": 3,
"Pvp_buff": {
"enemy": [
100025000,
100025001
]
},
"RollType": 1,
"AttackAct": [
"attack"
],
"Attack_EP": 3,
"SkillType": "Attack",
"Target_EP": 3,
"Logic_Param": {
"num": 8,
"range": 3
},
"Launch_Range": 4
}