BUG: The damage taken by the hit is out of sync with the trigger condition

Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly;
The player always has an attack hitbox, and the enemy always has a hitbox for taking damage;
When an enemy takes damage, it becomes invincible for 1 second and briefly moves to the right.

BUG:
If the player remains still and allows the enemy to slowly touch the player, the enemy will trigger a brief movement to the right,
but it will not become invincible, and HP will not change.

Manifestation in game usage:
If the player fires a slow bullet at the enemy, and the bullet disappears upon impact,
it is easy for the bullet to disappear while the enemy remains unharmed.


Description:
WSAD controls the protagonist’s movement, and the enemy will automatically approach the protagonist slowly