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:
Joby Walker 2014-08-01 01:35:07 -07:00
parent 4d6562b86b
commit 24e0f705b2

View file

@ -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
###