From d8f2153009c44454e74403d2501aac4ea7d5191b Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 7 May 2024 13:45:29 +0100 Subject: [PATCH] Fixed flares not being sent when using `give` command from `commando` bot --- .../Commando/SptCommands/GiveCommand/GiveSptCommand.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts b/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts index 3451d574..29560329 100644 --- a/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts +++ b/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts @@ -203,9 +203,12 @@ export class GiveSptCommand implements ISptCommand const itemsToSend: Item[] = []; if ( - this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.WEAPON) - || this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.ARMOR) - || this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.VEST) + (this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.WEAPON) + || this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.ARMOR) + || this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.VEST)) + && !["62178c4d4ecf221597654e3d", "6217726288ed9f0845317459", "624c0b3340357b5f566e8766"].includes( + checkedItem[1]._id, + ) // edge case for handheld flares ) { const preset = this.presetHelper.getDefaultPreset(checkedItem[1]._id);