diff --git a/data/modules/scripts/gamestore/init.lua b/data/modules/scripts/gamestore/init.lua index 5af32a07b69..7d9081df1fb 100644 --- a/data/modules/scripts/gamestore/init.lua +++ b/data/modules/scripts/gamestore/init.lua @@ -409,13 +409,13 @@ function parseBuyStoreOffer(playerId, msg) -- All guarding conditions under which the offer should not be processed must be included here if - not table.contains(GameStore.OfferTypes, offer.type) -- we've got an invalid offer type + not table.contains(GameStore.OfferTypes, offer.type) -- we've got an invalid offer type or not player or (player:getVocation():getId() == 0) and (not GameStore.haveOfferRook(id)) -- we don't have such offer or not offer or (offer.type == GameStore.OfferTypes.OFFER_TYPE_NONE) -- offer is disabled or ( - offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE + offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_EXPBOOST and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYBONUS and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYSLOT @@ -429,7 +429,7 @@ function parseBuyStoreOffer(playerId, msg) and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HIRELING_SKILL and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HIRELING_OUTFIT and not offer.id - ) + ) then return queueSendStoreAlertToUser("This offer is unavailable [1]", 350, playerId, GameStore.StoreErrors.STORE_ERROR_INFORMATION) end @@ -631,7 +631,7 @@ function Player.canBuyOffer(self, offer) end if - offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE + offer.type ~= GameStore.OfferTypes.OFFER_TYPE_NAMECHANGE and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_EXPBOOST and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_PREYSLOT and offer.type ~= GameStore.OfferTypes.OFFER_TYPE_HUNTINGSLOT