fix(fenrir): Cultist claws land on the clip's own hits
The single claw dealt its damage at a fixed 0.4 s, before the swing in ClawAttackCultist (Hit event at 0.64 s of 1.33 s), and released the lock at 0.5 s, so clicking again started a new claw mid-swing. The double claw dealt one hit at 0.6 s although DoubleClawAttackCultist swipes twice (Hit events at 0.64 s and 1.21 s). BlockPlayerAttackTriggerPatch now counts the form's Hit events (FenrirForms.AttackEvents) instead of only swallowing them. Both claws wait for their events, with a timeout, and hold the lock until the clip ends. Each double-claw swipe deals 60% of Double Claw Damage, 120% in all for a slower swing that can be cut short.
This commit is contained in:
parent
373b0069dd
commit
ffb45d1c1c
4 changed files with 73 additions and 17 deletions
|
|
@ -56,7 +56,9 @@ namespace RacesOfValheim
|
|||
{
|
||||
public static bool Prefix(Humanoid __instance)
|
||||
{
|
||||
return !FenrirForms.LocalInForm(__instance);
|
||||
if (!FenrirForms.LocalInForm(__instance)) return true;
|
||||
FenrirForms.NotifyAttackTrigger();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue