finished mana bar logic