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:
parent
dd92bdf345
commit
beffd0bee6
5 changed files with 28 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue