mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Fix freeRebirth flag
Coffee is assuming the negation (!) applies to the AND of the two tests should be just !user.flags.freeRebirth = true. Fixes 4 test errors.
This commit is contained in:
parent
4d6562b86b
commit
24e0f705b2
1 changed files with 1 additions and 1 deletions
|
|
@ -1155,7 +1155,7 @@ api.wrap = (user, main=true) ->
|
|||
dialog: i18n.t('messageFoundQuest', {questText: content.quests.vice1.text(req.language)}, req.language)
|
||||
if !user.flags.rebirthEnabled and (user.stats.lvl >= 50 or user.achievements.ultimateGear or user.achievements.beastMaster)
|
||||
user.flags.rebirthEnabled = true
|
||||
if !user.flags.freeRebirth = true and user.stats.lvl >= 100
|
||||
if user.stats.lvl >= 100 and !user.flags.freeRebirth = true
|
||||
user.flags.freeRebirth = true
|
||||
|
||||
###
|
||||
|
|
|
|||
Loading…
Reference in a new issue