mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
Salt spell d
oesn't check to see if you have enough Gold #4454 adjusting check
This commit is contained in:
parent
cf40ef8a72
commit
9d6d375663
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue