Implement basic spellcasting AI (Fixes #961)

Select a weapon to attack with in AiCombat and equip it (Fixes #1609, Fixes #1772)