Fixed flares not being sent when using give command from commando bot

This commit is contained in:
Dev 2024-05-07 13:45:29 +01:00
parent 3bf887341f
commit d8f2153009

View File

@ -203,9 +203,12 @@ export class GiveSptCommand implements ISptCommand
const itemsToSend: Item[] = []; const itemsToSend: Item[] = [];
if ( if (
this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.WEAPON) (this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.WEAPON)
|| this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.ARMOR) || this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.ARMOR)
|| this.itemHelper.isOfBaseclass(checkedItem[1]._id, BaseClasses.VEST) || 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); const preset = this.presetHelper.getDefaultPreset(checkedItem[1]._id);