From eba9f55da963bc4144f23548675b1f1d7973bcac Mon Sep 17 00:00:00 2001 From: WinterSolstice8 <60417494+wintersolstice8@users.noreply.github.com> Date: Tue, 24 Mar 2026 07:19:54 -0600 Subject: [PATCH] [tests] Adjust Sonic Boom Finish & mobs parrying/guarding tests This should make them more reliable in testing --- scripts/tests/packets/s2c/0x028_battle2/basic_attacks.lua | 4 ++++ scripts/tests/packets/s2c/0x028_battle2/mobskills.lua | 3 ++- scripts/tests/packets/s2c/0x028_battle2/weaponskills.lua | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/tests/packets/s2c/0x028_battle2/basic_attacks.lua b/scripts/tests/packets/s2c/0x028_battle2/basic_attacks.lua index fbfb75e53e9..c2dc3a534f3 100644 --- a/scripts/tests/packets/s2c/0x028_battle2/basic_attacks.lua +++ b/scripts/tests/packets/s2c/0x028_battle2/basic_attacks.lua @@ -135,10 +135,14 @@ local packets = player:equipItem(xi.item.BRONZE_DAGGER, nil, xi.slot.MAIN) local warMob = player.entities:moveTo('Vanguard_Footsoldier') player.actions:engage(warMob) + warMob:updateEnmity(player) + for i = 1, 20 do xi.test.world:tickEntity(player) xi.test.world:skipTime(10) end + + warMob:disengage() end, expected = diff --git a/scripts/tests/packets/s2c/0x028_battle2/mobskills.lua b/scripts/tests/packets/s2c/0x028_battle2/mobskills.lua index fe76b624fcd..4e90e511ae6 100644 --- a/scripts/tests/packets/s2c/0x028_battle2/mobskills.lua +++ b/scripts/tests/packets/s2c/0x028_battle2/mobskills.lua @@ -54,7 +54,8 @@ local packets = local bats = player.entities:moveTo('Incubus_Bats') -- Incubus Bats bats:addTP(3000) bats:useMobAbility(xi.mobSkill.SONIC_BOOM_1, player, 0) - xi.test.world:tickEntity(bats) -- Tick the AI so the skill gets readied + xi.test.world:skipTime(4) + xi.test.world:tickEntity(bats) -- Tick the AI so the skill finishes end, expected = diff --git a/scripts/tests/packets/s2c/0x028_battle2/weaponskills.lua b/scripts/tests/packets/s2c/0x028_battle2/weaponskills.lua index c957b7fe93b..df1b051458f 100644 --- a/scripts/tests/packets/s2c/0x028_battle2/weaponskills.lua +++ b/scripts/tests/packets/s2c/0x028_battle2/weaponskills.lua @@ -174,10 +174,12 @@ local packets = mnkMob:setMod(xi.mod.ADDITIVE_GUARD, 100) player.actions:engage(mnkMob) + mnkMob:updateEnmity(player) xi.test.world:tickEntity(player) xi.test.world:skipTime(1) player.actions:useWeaponskill(mnkMob, xi.weaponskill.PYRRHIC_KLEOS) xi.test.world:skipTime(3) + mnkMob:disengage() end, expected =