stopping health regen by hitting the enemy

ive tried to do what you said almost fine,1 problem is :
If I hit an enemy then I hit another one within that 5 sec delay then the first hit enemy health regen stops and not starting the regen again (until I hit him again)