Fix for detect good/evil not adding state to enchantment list.

Currently these spells don't have a function to retrieve the state when cast (in this case, state = spellpower). This is causing an error to be logged on the server, so I added the function and cleaned up the files a bit.