You can avoid the afterattack() by returning 1 on the attackby() if I remember correctly. It should be on the click code, search it because sayu just revamped all that.