From 3c725763a608f469da5311149cf65e2aa126d8e7 Mon Sep 17 00:00:00 2001 From: Skold <113406182+Skold177@users.noreply.github.com> Date: Thu, 30 Apr 2026 21:40:58 -0400 Subject: [PATCH] [lua] Fixes 3 mobskills Removes invalid arguments Updates Jailer of Hope add effect --- scripts/actions/mobskills/aerial_collision.lua | 2 +- scripts/actions/mobskills/envoutement.lua | 2 +- scripts/actions/mobskills/grim_reaper.lua | 2 +- scripts/zones/AlTaieu/mobs/Jailer_of_Hope.lua | 10 +++++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/actions/mobskills/aerial_collision.lua b/scripts/actions/mobskills/aerial_collision.lua index 44d0b84dc64..2dc685865d2 100644 --- a/scripts/actions/mobskills/aerial_collision.lua +++ b/scripts/actions/mobskills/aerial_collision.lua @@ -31,7 +31,7 @@ mobskillObject.onMobWeaponSkill = function(mob, target, skill, action) -- -38% ~ -50% defense. Decays every 2 ticks by 10% -> 6% -> 6% -> 4% -> 4% -> 4% and then wears off. Lower durations just end without decaying fully. local power = 50 - math.min(10, 5 * math.floor((skill:getTP() - 1000) / 1000)) - xi.mobskills.mobStatusEffectMove(mob, target, skill, xi.effect.DEFENSE_DOWN, power, 0, math.random(45, 75)) + xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.DEFENSE_DOWN, power, 0, math.random(45, 75)) end return info.damage diff --git a/scripts/actions/mobskills/envoutement.lua b/scripts/actions/mobskills/envoutement.lua index 1c55f85855c..4d385debea5 100644 --- a/scripts/actions/mobskills/envoutement.lua +++ b/scripts/actions/mobskills/envoutement.lua @@ -25,7 +25,7 @@ mobskillObject.onMobWeaponSkill = function(mob, target, skill, action) if xi.mobskills.processDamage(mob, target, skill, action, info) then target:takeDamage(info.damage, mob, info.attackType, info.damageType) - xi.mobskills.mobStatusEffectMove(mob, target, skill, xi.effect.CURSE_I, 25, 0, 180) + xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.CURSE_I, 25, 0, 180) end return info.damage diff --git a/scripts/actions/mobskills/grim_reaper.lua b/scripts/actions/mobskills/grim_reaper.lua index daeb93596e2..4f0fa3b8d36 100644 --- a/scripts/actions/mobskills/grim_reaper.lua +++ b/scripts/actions/mobskills/grim_reaper.lua @@ -30,7 +30,7 @@ mobskillObject.onMobWeaponSkill = function(mob, target, skill, action) if xi.mobskills.processDamage(mob, target, skill, action, info) then target:takeDamage(info.damage, mob, info.attackType, info.damageType) - xi.mobskills.mobStatusEffectMove(mob, target, skill, xi.effect.DOOM, 10, 3, 45) + xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.DOOM, 10, 3, 45) end return info.damage diff --git a/scripts/zones/AlTaieu/mobs/Jailer_of_Hope.lua b/scripts/zones/AlTaieu/mobs/Jailer_of_Hope.lua index 6abeba05880..ff914eea93c 100644 --- a/scripts/zones/AlTaieu/mobs/Jailer_of_Hope.lua +++ b/scripts/zones/AlTaieu/mobs/Jailer_of_Hope.lua @@ -100,7 +100,15 @@ entity.onMobWeaponSkill = function(mob, target, skill, action) end entity.onAdditionalEffect = function(mob, target, damage) - return xi.mob.onAddEffect(mob, target, damage, xi.mob.ae.STUN, { chance = 65, duration = math.random(4, 8) }) + local pTable = + { + chance = 65, + effectId = xi.effect.STUN, + element = xi.element.THUNDER, + duration = math.random(4, 8), + } + + return xi.combat.action.executeAddEffectEnfeeblement(mob, target, pTable) end entity.onMobDeath = function(mob, player, optParams)