This may be a stupid question, but did you re-run shared_memory.exe after making your changes? It's possible he cast's the spell when its in the pre-existing spell set because the server knows about it. It won't know about your new one until you restart/run shared_memory...
EDIT* Nevermind, you got it sorted