Creating a delay after taking damage and before armor regen

What am I missing?