The system is 5e.
I’m in a weird spot with my campaign, where my party is taking on a night hag. They are lvl 5 adventurers. They have no access to see invisibility currently since the only spellcaster is a cleric and a healing focused warlock. We left off last week with the hag disappearing and they cast detect good and evil. I elected to end the session there because the session was already 3 hours in (which is about how long our sessions go) and also because I wasn’t sure how to rule this. I would think that detect good and evil works for this, at least that’s the way I’m leaning but some clarification on the same would be much appreciated.