1
0
mirror of synced 2025-01-23 15:02:06 +01:00

also delete the challenge hof ghost when lost

This commit is contained in:
Shiroi Kitsu 2023-06-22 11:47:04 +07:00
parent 5ab4c13992
commit ab23f99e6c

View File

@ -442,16 +442,12 @@ export async function saveGhostBattleResult(body: wm.protobuf.SaveGameResultRequ
{
console.log('OCM Ghost Mode Found - Appointment (VS HoF Ghost)');
// Defeated HoF Ghost
if(body.rgResult!.opponents![0].result >= 0)
{
// Delete all the records
await prisma.ghostRegisteredFromTerminal.deleteMany({
where:{
carId: Number(body.carId)
}
});
}
break;
}