Refactored code of Magic Master special power selection.

Signed-off-by: Zyk <zyk6870@gmail.com>