Fixed flares not being sent when using give
command from commando
bot
This commit is contained in:
parent
3bf887341f
commit
d8f2153009
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user