I think this script would benefit from refilling mana each room, running it on a 400 ek and its sub optimal tbh