stops Orb of Rebirth being visible after rebirth - fixes #8593 (#9172)

* remove link between rebirth and beastmaster, and fix tests

* add test checking rebirth is reset when beastmaster is enabled

* remove exclusive test
This commit is contained in:
borisabramovich86
2017-10-18 23:23:27 +03:00
committed by Sabe Jones
parent d711bf4085
commit 444f393f3a
2 changed files with 3 additions and 5 deletions

View File

@@ -81,12 +81,10 @@ module.exports = function rebirth (user, tasks = [], req = {}, analytics) {
}
let flags = user.flags;
if (!user.achievements.beastMaster) {
flags.rebirthEnabled = false;
}
flags.itemsEnabled = false;
flags.dropsEnabled = false;
flags.classSelected = false;
flags.rebirthEnabled = false;
flags.levelDrops = {};
if (!user.achievements.rebirths) {