mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Fixed gem amount on master key (#10140)
* Fixed gem amount on master key * fix(news): update Bailey text
This commit is contained in:
committed by
Sabe Jones
parent
bb6f465ac8
commit
7fe62a731b
@@ -10,8 +10,8 @@ import pick from 'lodash/pick';
|
||||
module.exports = function releaseBoth (user, req = {}, analytics) {
|
||||
let animal;
|
||||
|
||||
if (user.balance < 1.5 && !user.achievements.triadBingo) {
|
||||
throw new NotAuthorized(i18n.t('notEnoughGems', req.language));
|
||||
if (!user.achievements.triadBingo) {
|
||||
throw new NotAuthorized(i18n.t('notEnoughPetsMounts', req.language));
|
||||
}
|
||||
|
||||
if (beastMasterProgress(user.items.pets) !== 90 || mountMasterProgress(user.items.mounts) !== 90) {
|
||||
|
||||
Reference in New Issue
Block a user