Javascript bug with dungeon entry alert needs fixing