Gaze of Serpent
Lvl: 1
Attack
Magic
Range: 5
Fixed Cast Time: 3
After a 3-sec cast, deals moderate non-attribute M. DMG to enemy units within 3*5m in front and applies a 4s [Immobilization] effect to each of them.
Formula
function CommonFun.calcDamage_32(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 RangeDam = srcUser:GetProperty("RangeDam")
local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
local targetDefElement = targetUser:GetProperty("DefAttr")
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
local bossparam = CommonFun.CalcBossParam(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 * bossparam * bossparam2
local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
local BaseLvDamage = 0
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 93_KNIGHT:HEAVEN_S_DRIVE_KNIGHT:HEAVEN_S_DRIVE or skillID == 1483_GUILLOTINE_CROSS:HEAVEN_S_DRIVE then
local IBaseLv = srcUser.BaseLv
if srcUser:HasBuffID(42110_FLUORESCENCE_:MAX_STACK_0) then
BaseLvDamage = IBaseLv * 15
end
end
if skillID == 1482_GUILLOTINE_CROSS:STORM_GUST_GUILLOTINE_CROSS:STORM_GUST then
local IBaseLv1 = srcUser.BaseLv
if srcUser:HasBuffID(42110_FLUORESCENCE_:MAX_STACK_0) then
BaseLvDamage = IBaseLv1 * 15
end
local GemValue = srcUser:GetGemValue(143161_STORM_GUST_DMG_PERCENTAGE)
damChangePer = damChangePer * (1 + GemValue / 100000)
end
local CardXR = 1
local CardNum = srcUser:GetEquipCardNum(7, 23048_HILL_WIND_CARD)
local CardNum2 = srcUser:GetEquipCardNum(7, 24664_HILL_WIND_STAR_CARD)
CardNum = CardNum + CardNum2
if skillID == 82_SWORDSMAN:LORD_OF_VERMILION_SWORDSMAN:LORD_OF_VERMILION then
CardXR = CardNum * 0.25 + 1
end
if skillID == 1939_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON then
local skilllv_mf = srcUser:GetLernedSkillLevel(1933_SNIPER:DIM_WIND)
damChangePer = (skilllv_mf * 0.8 + 8.8) * 0.8
end
local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * (1 - RefineMDamReduc) * damChangePer * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * (1 + RangeDam) * CardXR + BaseLvDamage
local Num1 = srcUser:GetRunePoint(143014_AESIR_STORM_GUST_DMG_7)
if skillID == 81_SWORDSMAN:STORM_GUST or skillID == 1482_GUILLOTINE_CROSS:STORM_GUST_GUILLOTINE_CROSS:STORM_GUST or skillID == 1904_HUNTER:STORM_GUST then
if srcUser:HasBuffID(52170_STORMY_KNIGHT_CARD_:MAX_STACK_0) and srcUser:HasBuffID(81000040_STORMY_KNIGHT_CARD_DEPOSITE_:MAX_STACK_0) then
A = A * 1.2
end
if srcUser:HasBuffID(53290_MARTIN_SCAVENGER_CARD_:MAX_STACK_0) then
A = A * 1.05
end
if 0 < Num1 then
A = A * (Num1 * 0.07 + 1)
end
local GemValue1 = srcUser:GetGemValue(21073_STORM_GUST_DMG_PERCENTAGE)
local GemValue2 = srcUser:GetGemValue(143073_STORM_GUST_DMG_PERCENTAGE)
A = A * (1 + GemValue1 / 100000 + GemValue2 / 100000)
end
if skillID == 1160_THIEF:EARTH_STRAIN then
local GemValue = srcUser:GetGemValue(21053_EARTH_STRAIN_DMG_PERCENTAGE)
A = A * (1 + GemValue / 100000)
end
if skillID == 82_SWORDSMAN:LORD_OF_VERMILION_SWORDSMAN:LORD_OF_VERMILION then
local GemValue = srcUser:GetGemValue(21062_LORD_OF_VERMILION_DMG_PERCENTAGE)
A = A * (1 + GemValue / 100000)
end
if skillID == 93_KNIGHT:HEAVEN_S_DRIVE_KNIGHT:HEAVEN_S_DRIVE then
local GemValue = srcUser:GetGemValue(21092_HEAVEN_S_DRIVE_DMG_PERCENTAGE)
A = A * (1 + GemValue / 100000)
end
if skillID == 3107_WHITESMITH:WIND_BLADE_ADJUDICATION then
local skilllv_kf = srcUser:GetLernedSkillLevel(3124_WHITESMITH:WIND_BLADE_ADJUDICATION_ENHANCE)
A = A * (1 + skilllv_kf * 0.05)
end
if (skillID == 3111_WHITESMITH:SAND_STORM or skillID == 1933_SNIPER:DIM_WIND or skillID == 1939_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON) and (targetUser:HasBuffID(118140_EARTH_FIELD_:MAX_STACK_0) or targetUser:HasBuffID(125140_QUICKSAND_VORTEX_EMPTY_BUFF_:MAX_STACK_0)) then
local skilllv_slj = srcUser:GetLernedSkillLevel(3126_WHITESMITH:SAND_STORM_EARTH_ELEMENT)
local skilllv_mofeng = srcUser:GetLernedSkillLevel(1946_SNIPER:MAGIC_WIND_EARTH_ELEMENT)
A = A * (1 + skilllv_slj * 0.12 + skilllv_mofeng * 0.12)
end
if skillID == 3108_WHITESMITH:QUICKSAND_VORTEX or skillID == 1931_SNIPER:JELLYFISH_SUMMON then
local GemValue = srcUser:GetGemValue(21141_QUICKSAND_VORTEX_DMG_PERCENTAGE)
A = A * (1 + GemValue / 100000)
end
if A <= 1 then
return 1
end
return A
end
Enemy
{
"id": 155950,
"BuffDesc": "Snared: Can't move",
"BuffIcon": "skillbuff_commonbuff",
"BuffName": "Gaze of Serpent (Immobilize)",
"BuffRate": {
"Odds": 100
},
"IconType": 1,
"BuffEffect": {
"type": "StatusChange",
"NoMove": 1,
"AttrEffect": [
3,
4
],
"StateEffect": "9_NoMove"
}
}
Formula
{
"id": 23120001,
"Buff": {
"enemy": [
155950
]
},
"Cost": 1,
"Desc": [
{
"id": 23120001
}
],
"Icon": "skill_1041001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillForwardRect",
"Damage": [
{
"type": 32,
"damChangePer": 10,
"elementparam": 5
}
],
"DescId": "##1236232",
"NameZh": "##1236210",
"CastAct": "reading",
"DamTime": {
"type": 1,
"value": 2
},
"Fire_EP": 6,
"Pvp_buff": {
"enemy": [
155950
]
},
"RollType": 2,
"AttackAct": [
"use_skill"
],
"Attack_EP": 2,
"Lead_Type": {
"CCT": 3,
"FCT": 0,
"type": 2
},
"SkillType": "Attack",
"Target_EP": 3,
"Logic_Param": {
"width": 3,
"distance": 7,
"range_num": 10,
"immune_taunt": 1,
"forward_offset": 0,
"ShowWarningEffect": true
},
"Launch_Range": 5
}