
New Poison Reaper
Lvl: 1
Buff
After a brief Dark Ceremony, detonates the [New Poison] stacked on the players within the map, deducting (current stacks of Poison x10 + current stacks of New Poison x25) %% of their Max HP and removing the [Poisoned] and [New Poison] effects from the targets.
Enemy 6
function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local MaxHp = targetUser:GetProperty("MaxHp")
local A = MaxHp * (a + c) + b
if 0 < A or a == 0 then
return A
end
if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
return 0
end
if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
local Vit = srcUser:GetProperty("Vit")
local MAtk = srcUser:GetProperty("MAtk")
local MAtkPer = srcUser:GetProperty("MAtkPer")
local Refine = srcUser:GetProperty("Refine")
local MRefine = srcUser:GetProperty("MRefine")
local Def2 = targetUser:GetProperty("Def")
local DefPer2 = targetUser:GetProperty("DefPer")
local MDef2 = targetUser:GetProperty("MDef")
local MDefPer2 = targetUser:GetProperty("MDefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local Int2 = targetUser:GetProperty("Int")
local IntPer2 = targetUser:GetProperty("IntPer")
local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
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 MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
local IgnoreDef = srcUser:GetProperty("IgnoreDef")
if 1 <= IgnoreDef then
IgnoreDef = 1
end
local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
if 1 <= IgnoreMDef then
IgnoreMDef = 1
end
local raceparam = 1
local srcRace = srcUser.race
local targetRace = targetUser.race
if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
targetRace = 3
end
if srcUser:HasBuffID(139411_TWO_FACE_DEMON_KING_DEMON_:MAX_STACK_0) then
srcRace = 3
end
if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
targetRace = 2
end
if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
srcRace = 2
end
if nil == CommonFun.RaceProps[targetRace] then
return 0
end
if nil == CommonFun.RaceProps[srcRace] then
return 0
end
local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
local raceparam = 1 + raceInc - raceRed
if raceparam <= 0.1 then
raceparam = 0.1
end
local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
if MAtkFinal <= AtkFinal then
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
else
local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
end
end
local AttrFunction = srcUser:GetProperty("AttrFunction")
local bitfunc = CommonFun.getBits(AttrFunction)
if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
A = 0
end
if CommonFun.checkAttrFunctionMiss(targetUser, srcUser) then
A = 0
end
if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
A = 0
end
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
Enemy 8990
function CommonFun.calcBuff_8990(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local MaxHp = targetUser:GetProperty("MaxHp")
local PoisonAtk = srcUser:GetProperty("PoisonAtk")
local PoisoningAtk = srcUser:GetProperty("PoisoningAtk")
local StateAtk = srcUser:GetProperty("StateAtk")
local skilllv_1 = srcUser:GetLernedSkillLevel(3925_DIVINE_AVENGER:SOUL_EROSION_POISONOUS_SOUL)
local duhun = 1
if 1 <= skilllv_1 and targetUser:GetNpcID() ~= 0 then
duhun = (PoisonAtk + PoisoningAtk + StateAtk) / 5 * (0.1 * skilllv_1 + 0.3) + 1
end
local A = a * duhun * MaxHp
local B = a * duhun
A = CommonFun.calcBuff_6(srcUser, targetUser, B, b, c, d, lv)
return A
end
Enemy 7750
function CommonFun.calcBuff_7750(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local A = 0
local Pudu = targetUser:GetBuffLayer(20182_POISON_EFFECT_POISON_:MAX_STACK_0)
local Xindu = targetUser:GetBuffLayer(116013_POISONOUS_WEAPON_POISONED_:MAX_STACK_0)
local MaxHp = targetUser:GetProperty("MaxHp")
A = (Pudu * 0.1 + Xindu * 0.25) * MaxHp
return -A
end
Enemy
{
"id": 20182,
"BuffName": "Poison Effect [Poison]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"BuffEffect": {
"type": "StatusChange",
"DefPer": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "1_Poison"
},
"BuffStateID": 120030
}
Enemy
{
"id": 20183,
"Dsc": "Poisoning: decrease Def, stop restoring MP, loses HP",
"BuffDesc": "Poisoning: decrease Def, stop restoring MP, loses HP",
"BuffIcon": "skillbuff_commonbuff",
"BuffName": "Poison Bleeding Effect [Poison]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 1
},
"IconType": 1,
"BuffEffect": {
"Hp": {
"a": -0.02,
"b": -5,
"type": 6
},
"type": "HpReduce",
"delHpPer": {
"a": 0.2,
"type": 153
},
"StateEffect": "1_Poison",
"limit_layer": 3
}
}
Enemy
{
"id": 116013,
"BuffName": "Poisonous Weapon [Poisoned]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 0
},
"BuffEffect": {
"type": "StatusChange",
"DefPer": -0.25,
"AttrEffect": [
3,
4
],
"StateEffect": "1_Poison",
"IsForceStatus": 1
},
"BuffStateID": 116013
}
Enemy
{
"id": 116014,
"BuffDesc": "New Poison: decrease Def, stop restoring MP, loses HP. Cannot be removed",
"BuffIcon": "skillbuff_178001",
"BuffName": "Poisonous Weapon [Poisoned]",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 0,
"isdisperse": 0
},
"IconType": 1,
"BuffEffect": {
"Hp": {
"a": -0.03,
"b": -3,
"type": 8990
},
"type": "HpReduce",
"EquipASPD": {
"a": 0,
"b": 0,
"c": 31071,
"type": 5020
},
"MoveSpdPer": {
"a": 0,
"b": 0,
"c": 31072,
"type": 5020
},
"StateEffect": "1_Poison",
"limit_layer": 3,
"BeHealEncPer": {
"a": 0,
"b": 0,
"c": 34070,
"d": -0.05,
"type": 3250
},
"IsForceStatus": 1
}
}
Enemy
{
"id": 158677,
"BuffName": "New Poison Reap Damage",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"Hp": {
"type": 7750
},
"type": "HSPChange"
}
}
Enemy
{
"id": 158678,
"BuffName": "Poisoned Effect Removal",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"id": [
20182,
20183,
116013,
116014
],
"type": "DelBuff"
}
}
Formula
{
"id": 25306001,
"Buff": {
"enemy": [
158677,
158678
]
},
"Cost": 1,
"Desc": [
{
"id": 25306001
}
],
"Icon": "skill_3911001",
"Camps": "Enemy",
"Level": 1,
"Logic": "SkillSelfRange",
"DescId": "##1244764",
"NameZh": "##1244034",
"SE_hit": "Skill/PoisonFog_buff",
"CastAct": "skill_ready8",
"Fire_EP": 3,
"SE_cast": "Skill/ninjia_tongling_dashe",
"Pvp_buff": {
"enemy": [
158677,
158678
]
},
"Attack_EP": 0,
"Lead_Type": {
"type": 1,
"ReadyTime": 5
},
"SE_attack": "Skill/skill_magic_fogspell_atttack",
"SkillType": "Buff",
"Target_EP": 0,
"Logic_Param": {
"loop": false,
"count": 1,
"range": 50,
"effect": "Pray_attack,LowRange_B2",
"interval": 1,
"no_select": 1,
"range_num": 8,
"isCountTrap": 1,
"fieldarea_cannot_immune": 1
},
"Launch_Range": 0
}