moved hitbox immunity clear

This commit is contained in:
Lilith Schier 2026-08-01 17:38:26 +02:00
parent a982f0603d
commit 7d95a97181

View file

@ -66,6 +66,7 @@ public sealed partial class Hitbox : Area2D
public void StartAttack()
{
if (Engine.IsEditorHint()) Visible = true;
_immunityEntries.Clear();
_checkingForHits = true;
SetPhysicsProcess(true);
}
@ -74,7 +75,6 @@ public sealed partial class Hitbox : Area2D
{
if (Engine.IsEditorHint()) Visible = false;
_checkingForHits = false;
_immunityEntries.Clear();
SetPhysicsProcess(false);
}