Seems like they have to enter the room to get the exp even if it did kill since "leveling up" is absorbing the essence of the slain monsterSmart, but i don't think it killed the dragon because there was no exp (far as I can tell)
Thanks for the chapter!