moved mana cap handling into player