logic to use spell in fights