add magic resistance scale related logic