Fix: don't error when leaving raid early

This commit is contained in:
Dev 2023-03-23 20:18:53 +00:00
parent c477026843
commit 70e82cbe4e

View File

@ -64,6 +64,11 @@ export class PmcChatResponseService
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public sendKillerResponse(sessionId: string, pmcData: IPmcData, killer: Aggressor): void
{
if (!killer)
{
return;
}
if (!this.randomUtil.getChance100(this.pmcResponsesConfig.killer.responseChancePercent))
{
return;