Make your_spells() only give the "Invalid spell!" message if the spell type

is truly invalid. If it's a valid but monster-only spell:

  1. If the user is in wizard mode then temporarily place a dummy monster on the same square as the player and use it to cast the monster spell (this lets monster spells be cast via wizard commands for testing purposes).

  2. If the user isn't in wizard mode then give the message "Spell '[spellname]' is not a player castable spell.", which provides more useful debugging info than just "Invalid spell!"

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6325 c06c8d41-db1a-0410-9941-cceddc491573

Created by  zelgadis  on July 2, 2008
5OFUF2JHXEX5AF5CDY4KATIAFKIHDKTV463PIJZN3IXEIJWDNVYAC
Change contents