diff --git a/ui/src/app/lib/utils/syscalls.ts b/ui/src/app/lib/utils/syscalls.ts index 834760966..662bf3404 100644 --- a/ui/src/app/lib/utils/syscalls.ts +++ b/ui/src/app/lib/utils/syscalls.ts @@ -784,7 +784,8 @@ export function syscalls({ const battles = []; const fleeFailedEvents = events.filter( - (event) => event.name === "FleeFailed" + (event) => + event.name === "FleeFailed" || event.name === "AttackedByBeast" ); for (let fleeFailedEvent of fleeFailedEvents) { setData("adventurerByIdQuery", { @@ -794,17 +795,6 @@ export function syscalls({ battles.unshift(fleeFailedEvent.data[1]); } - const attackedByBeastEvents = events.filter( - (event) => event.name === "AttackedByBeast" - ); - for (let attackedByBeastEvent of attackedByBeastEvents) { - setData("adventurerByIdQuery", { - adventurers: [attackedByBeastEvent.data[0]], - }); - setAdventurer(attackedByBeastEvent.data[0]); - battles.unshift(attackedByBeastEvent.data[1]); - } - const fleeSucceededEvents = events.filter( (event) => event.name === "FleeSucceeded" );