Salt spell d

oesn't check to see if you have enough Gold #4454 adjusting check
This commit is contained in:
Melissa Mcewen 2015-01-01 14:31:11 -06:00
parent cf40ef8a72
commit 9d6d375663

View file

@ -195,7 +195,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
$scope.castStart = function(spell) {
if (User.user.stats.mp < spell.mana) return Notification.text(window.env.t('notEnoughMana'));
if (spell.value !== null && User.user.stats.gp < spell.value)
if (spell.immediateUse && User.user.stats.gp < spell.value)
return Notification.text('Not enough gold.');
$rootScope.applyingAction = true;