Reworked some mana mirror internals, fixed #310.