Fix: don't error when leaving raid early
This commit is contained in:
parent
c477026843
commit
70e82cbe4e
@ -64,6 +64,11 @@ export class PmcChatResponseService
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
public sendKillerResponse(sessionId: string, pmcData: IPmcData, killer: Aggressor): void
|
public sendKillerResponse(sessionId: string, pmcData: IPmcData, killer: Aggressor): void
|
||||||
{
|
{
|
||||||
|
if (!killer)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.randomUtil.getChance100(this.pmcResponsesConfig.killer.responseChancePercent))
|
if (!this.randomUtil.getChance100(this.pmcResponsesConfig.killer.responseChancePercent))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user