Skill | Poison Breath |

Lvl: 1
Attack
Magic
Range: 8
After charging up, Fantastic Dragon deals Poison DMG to enemies in a 90 degree arc.Lvl: 1
Attack
Magic
Range: 8
After charging up, Fantastic Dragon deals Poison DMG to enemies in a 90 degree arc.
Formula
function CommonFun.calcDamage_30(srcUser, targetUser, params, damageParam, logger)
local Luk = srcUser:GetProperty("Luk")
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 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 CardXR = 1
local CardNum = srcUser:GetEquipCardNum(7, 23048_HILL_WIND_CARD)
local CardNum2 = srcUser:GetEquipCardNum(7, 24664)
CardNum = CardNum + CardNum2
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
if skillID == 84_SWORDSMAN:JUPITEL_THUNDER then
CardXR = CardNum * 0.25 + 1
end
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)) * CardXR
if skillID == 1930_SNIPER:HEAVY_SLASH then
local MDamSpike = srcUser:GetProperty("MDamSpike_MPEN")
MAtkFinal = (MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk
A = (MAtkFinal * (1 + MDamSpike) + MRefine) * damChangePer * (1 - RefineMDamReduc) * (1 + MDamIncrease)
end
if skillID == 1500_GUILLOTINE_CROSS:ICE_WALL then
local Num1 = srcUser:GetRunePoint(143026_AESIR_ICE_WALL_DAMAGE_INCREASES_BY_10)
A = A * (1 + Num1 * 0.1)
end
if skillID == 3209_MECHANIC:CHRONOLOGY_BOLT then
local skilllv_1 = srcUser:GetLernedSkillLevel(3226_MECHANIC:CHRONOLOGY_BOLT_ENHANCE)
local taozhuang1 = 1
if srcUser:HasBuffID(91000470_SAGE_S_BOOK_TELEKINETIC_ORB_:MAX_STACK_0) or srcUser:HasBuffID(91000770_SAGE_S_HANDBOOK_TELEKINETIC_ORB_:MAX_STACK_0) or srcUser:HasBuffID(91001490_SAGE_S_BOOK_CONTRACT_JEWELERY_:MAX_STACK_0) or srcUser:HasBuffID(91001500_SAGE_S_HANDBOOK_CONTRACT_JEWELERY_:MAX_STACK_0) then
taozhuang1 = 1.15
end
if srcUser:HasBuffID(90004514_SAGE_S_HANDBOOK_1_T5_:MAX_STACK_0) then
taozhuang1 = taozhuang1 + 0.15
end
local Ring1 = srcUser:GetEquipedID(7_WEAPON)
local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
if Ring1 == 63440_SAGE_S_HANDBOOK_1 or Ring1 == 163440_SAGE_S_HANDBOOK_2 then
taozhuang1 = RefineLv * 0.01 + taozhuang1
end
local Num1 = srcUser:GetRunePoint(22160_AESIR_INCREASES_THE_DAMAGE_OF_FIRE_BOLT_COLD_BOLT_LIGHTNING_BOLT_AND_CHRONOLOGY_BOLT_BY_10)
local Num2 = srcUser:GetRunePoint(22161_AESIR_INCREASES_THE_DAMAGE_OF_FIRE_BOLT_COLD_BOLT_LIGHTNING_BOLT_AND_CHRONOLOGY_BOLT_BY_10)
local RuneDamage = (Num1 + Num2) * 0.1 + 1
local GemKj = 0
local GemSj = 0
if srcUser:HasBuffID(126122_CHRONOLOGY_BOLT_TIME_FIELD_:MAX_STACK_0) then
GemSj = srcUser:GetGemValue(82151_WHILE_YOU_ARE_IN_TIME_FIELD_INCREASE_CHRONOLOGY_BOLT_DMG_BY_PERCENTAGE)
end
local GemDam = 1 + GemSj / 100000
A = A * (1 + skilllv_1 * 0.06) * taozhuang1 * RuneDamage * GemDam
end
if A <= 1 then
return 1
end
return A
end
Buff Formula
Enemy 7150
function CommonFun.calcBuff_7150(srcUser, targetUser, a, b, c, d, lv, damage)
local Int = srcUser:GetProperty("Int")
local Vit = srcUser:GetProperty("Vit")
local MAtk = srcUser:GetProperty("MAtk")
local MAtkPer = srcUser:GetProperty("MAtkPer")
local MaxHp = targetUser:GetProperty("MaxHp")
local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local MRefine = srcUser:GetProperty("MRefine")
local srcAtkElement = c
local targetDefElement = targetUser:GetProperty("DefAttr")
local ElementRate = CommonFun.GetElementRate(srcUser, srcAtkElement, targetUser, targetDefElement)
if nil == CommonFun.NatureProps[srcAtkElement] or nil == CommonFun.NatureProps[targetDefElement] or nil == targetDefElement then
return 0
end
local elementInc = srcUser:GetProperty(CommonFun.NatureProps[targetDefElement][1])
local elementRed = targetUser:GetProperty(CommonFun.NatureProps[srcAtkElement][2])
local elementAtk = srcUser:GetProperty(CommonFun.NatureProps[srcAtkElement][3])
local elementparam = ElementRate
local elementparam2 = 1 + elementAtk
if elementparam2 <= 0.1 then
elementparam2 = 0.1
end
local ele = elementparam * elementparam2
if targetDefElement == nil or ElementRate == nil or elementInc == nil or elementRed == nil or elementAtk == nil then
ele = 1
end
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
local MDamSpike = srcUser:GetProperty("MDamSpike_MPEN")
local ResultDamInc = srcUser:GetProperty("ResultDamInc")
local ResultDamRes = targetUser:GetProperty("ResultDamRes")
local Result = 1 + ResultDamInc - ResultDamRes
Result = math.max(Result, 0.1)
local debuffdu = targetUser:GetBuffLayer(156610_POISON_VULNERABILITY_:MAX_STACK_0)
local debuffhuo = targetUser:GetBuffLayer(156620_FIRE_VULNERABILITY_:MAX_STACK_0)
local debuff = 1
if 1 <= debuffdu or 1 <= debuffhuo then
debuff = 1 + (debuffdu + debuffhuo - 1) * 0.5
end
local A = -((1 + MDamSpike) * b * (1 - RefineMDamReduc) * (1 + MDamIncrease) * Result * ele + MaxHp * a) * debuff
if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
A = -1
end
if targetUser:DamageAlways1() then
A = -1
end
return A
end
Buff Raw
Enemy
{
"id": 157010,
"BuffDesc": "Poison",
"BuffIcon": "skillbuff_155510",
"BuffName": "Poison vulnerability",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 0
},
"IconType": 2,
"Condition": {
"type": "MapType",
"needMapType": [
8
],
"delWhenInvalid": 1
},
"DelBuffID": [
157020,
157021,
157023
],
"LayerBuff": [
[
157080
]
],
"BuffEffect": {
"type": "AttrChange",
"RefineDamReduc": -0.05,
"RefineMDamReduc": -0.05,
"add_if_del_other": [
157120
]
},
"BuffStateID": 155510
}
{
"id": 157011,
"BuffName": "Poison Damage",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"id": [
157012
],
"type": "AddBuff"
}
}
{
"id": 157012,
"BuffName": "Poison Damage",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"Hp": {
"a": 0.01,
"b": 7000,
"c": 10,
"type": 7150
},
"type": "HSPChange"
}
}
{
"id": 157013,
"BuffName": "Poison stack",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"id": [
157010
],
"type": "AddBuff"
}
}
Raw
{
"id": 21203001,
"Buff": {
"enemy": [
157010,
157011,
157013
]
},
"Cost": 1,
"Desc": [
{
"id": 21003001,
"params": [
100
]
}
],
"Icon": "skill_78942001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillDirectionRect",
"Damage": [
{
"type": 30,
"damChangePer": 5,
"elementparam": 10
}
],
"DescId": "##1138188",
"NameZh": "##1242204",
"CastAct": "skill_ready",
"DamTime": {
"type": 1,
"value": 2
},
"Fire_EP": 3,
"Pvp_buff": {
"enemy": [
157010,
157011,
157013
]
},
"RollType": 2,
"AttackAct": [
"use_skill"
],
"Attack_EP": 2,
"Lead_Type": {
"type": 1,
"ReadyTime": 3
},
"SkillType": "Attack",
"Target_EP": 3,
"Logic_Param": {
"angle": 90,
"shape": "arc",
"distance": 12,
"no_select": 1,
"immune_taunt": 1,
"point_effect": "Eff_Doram_Boar_buff",
"forward_offset": 0,
"noReadingEffect": 1
},
"Launch_Range": 8
}