Don't hit enemy when he is underground

Hi guys how are you?
one question … I have a group of enemies among which there is one that disappears into the ground like a mole, and then comes back when it is under the player.
i would need that when the animation of the enemy is underground the bullets don’t see to damage him.
this is a screenshot of my current code:

I tried to reverse the condition
the animation is attack
frames >11
frame<15
but it seems to be incorrect.

So the enemy cannot be hit while in attack animation and on framed 12,13 & 14? How did you do it with GDevelop?


ok that seems to be correct.
Thank you