Re-enable message won't work when the HUD timer reaches 0

Hi, the re-enable message won’t work when the HUD timer reaches 0. Why?
From the share code: RQ0NX (KH2 Struggle workshop game)

variables
{
	player:
		0: hudTimer
		6: PlayerDied
		7: UnableMsgTxt
}

rule("EN: After player has died, he/she will be unable to move for 6 seconds")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Game In Progress == True;
		Event Player.PlayerDied == True;
		Health(Event Player) == True;
	}

	actions
	{
		Wait(1, Ignore Condition);
		Disable Messages(Event Player);
		Set Status(Event Player, Null, Asleep, 5);
		Set Status(Event Player, Null, Invincible, 5);
		Set Status(Event Player, Null, Rooted, 5);
		Event Player.hudTimer = Total Time Elapsed;
		Create HUD Text(Event Player, Custom String("Unable to move: {0}!", Round To Integer(
			Event Player.hudTimer + 5 - Total Time Elapsed, Up)), Null, Null, Top, 1, Aqua, Aqua, Aqua, Visible To and String,
			Default Visibility);
		Event Player.UnableMsgTxt = Last Text ID;
	}
}

rule("After the player gets up, reenable message")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Event Player.hudTimer == 0;
	}

	actions
	{
		Enable Messages(Event Player);
	}
}

The reason is that the variable “hudTimer” never gets decreased, so it can’t actually reach 0. You also don’t need to decrease the variable, since comparing it to “total time elapsed” is better.
Fixed it for you:

rule("After the player gets up, reenable message")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Event Player.hudTimer - Total Time Elapsed <= 0;
	}

	actions
	{
		Enable Messages(Event Player);
	}
}