fix: a stagger cancels the form's attack

A form swing waits for its clip's hit event and lands on a timeout if none comes,
so a stagger that cut the clip short still dealt the blow. Attacks are marked as
they start (TrySpendStamina, Ravager AttackRoutine) and their hits are dropped if
a stagger began since. No attack or Cultist breath starts while staggered.
This commit is contained in:
kanym 2026-10-29 13:53:04 +01:00
commit beffd0bee6
5 changed files with 28 additions and 7 deletions

View file

@ -211,7 +211,7 @@ namespace RacesOfValheim
yield return null;
}
if (player != null && !player.IsDead())
if (player != null && !player.IsDead() && !FormStagger.AttackInterrupted)
{
float scale = transform.localScale.x;
int landed;