bugfix 21/09/26

This commit is contained in:
Ferdinando 2026-09-21 09:05:56 +02:00
commit 64d8869f98
3 changed files with 70 additions and 3 deletions

View file

@ -549,7 +549,10 @@ namespace RacesOfValheim
// the live button state (via the configured shortcut, so a rebind stays in sync)
// rather than a flag set during our Update, so it does not depend on whether
// PlayerController's FixedUpdate happens to run first.
if (secondaryAttack && SkadiConfig.ColdSpellKey.Value.IsPressedIgnoringHeldKeys() &&
// The pad's secondary attack casts only bare-handed (SkadiRace.PadCastsColdSpell), so it
// swallows the kick only then; with a weapon in hand the weapon's secondary goes through.
bool padCast = RaceInput.PadAttackHeld(2) && SkadiRace.PadCastsColdSpell(Player.m_localPlayer);
if (secondaryAttack && (SkadiConfig.ColdSpellKey.Value.IsPressedIgnoringHeldKeys() || padCast) &&
SkadiRace.Instance != null && SkadiRace.Instance.IsSkadi())
{
var rules = SkadiProgression.GetRules(BossProgressionManager.GetCurrentProgressionState());