fix(forms): Trol, Skadi, Sverm and Muspell form hits build adrenaline

The same bug the Fenrir forms had until d8dcecb. Vanilla grants a hit's
adrenaline inside Attack; these forms skip Attack and call Damage
directly, so only the stagger bonus in Character.Damage ever reached the
player.

FormMelee.GrantAdrenaline now runs after each hit of the True Form
troll's punch and log swings, the drake's maul, the Ravager's swings and
the Muspell's stomp. The troll's ground slam hits through an Aoe, which
never touches Attack either: the slam marks its Aoe, and a postfix on
Aoe.OnHit grants the adrenaline for each creature it lands on.

Projectiles (Throw Rock, the Muspell spike, drake breath) were never
affected: Projectile grants its own adrenaline on a hit.
This commit is contained in:
kanym 2026-10-29 01:52:10 +01:00
commit b7b9cbcbd5
4 changed files with 24 additions and 0 deletions

View file

@ -1067,6 +1067,7 @@ namespace RacesOfValheim
hitData.SetAttacker(player);
target.Damage(hitData);
FormMelee.GrantAdrenaline(target);
}
}
}