move ability reset to function in entity prototype