Error message added to the method castSpell.