Mounts: prevent feeding special pets

This commit is contained in:
Tyler Renelle
2013-12-07 13:54:19 -07:00
parent 8f75b84b42
commit 46f91db14c

View File

@@ -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'))