Magic system: Clarified the logic further with inline methods (isBuff(), isDebuff()).