Fixed prapor starting gift being sent 5 times

This commit is contained in:
Dev 2024-06-17 22:00:38 +01:00
parent 06cc13c941
commit 5d0cfd7971

View File

@ -248,7 +248,7 @@ export class GiftService
if (giftId)
{
const giftData = this.getGiftById(giftId);
if (!this.profileHelper.playerHasRecievedMaxNumberOfGift(sessionId, giftId, giftData.maxToSendPlayer ?? 5))
if (!this.profileHelper.playerHasRecievedMaxNumberOfGift(sessionId, giftId, 1)) // Hard-coded to send only one
{
this.sendGiftToPlayer(sessionId, giftId);
}