mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Mounts: prevent feeding special pets
This commit is contained in:
@@ -114,6 +114,7 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', 'User', 'API_URL',
|
||||
|
||||
// Feeding Pet
|
||||
if ($scope.selectedFood) {
|
||||
if (window.habitrpgShared.items.items.specialPets[pet]) return Notification.text("Can't feed this pet.");
|
||||
var setObj = {};
|
||||
var userPets = user.items.pets;
|
||||
if (user.items.mounts[pet] && (userPets[pet] >= 50 || $scope.selectedFood.name == 'Saddle'))
|
||||
|
||||
Reference in New Issue
Block a user