fix bug and no mana will autoattack