[Code] Added gain attributes and testing.

Added spell.  Logs when used.  Also sends a message to the player.