Refactored raid buff detection.