fix(trenta): Purple Rain heals the Trenta who casts it

The heal skipped the caster, so a lone Trenta cast a heal that touched
no one. The caster now gets the same flat heal as its allies; the
compendium line and the config description say so.
This commit is contained in:
kanym 2026-10-29 02:21:49 +01:00
commit 87db3e03a6
5 changed files with 8 additions and 4 deletions

View file

@ -194,6 +194,10 @@ namespace RacesOfValheim
SpawnPurpleRainVfx(player);
// The Trenta stands in its own rain and is healed by it too. It used to be left out, so
// a lone Trenta cast a heal that never touched anyone.
player.Heal(TrentaConfig.PurpleRainHealAmount, true);
HashSet<Character> hit = new HashSet<Character>();
foreach (Collider collider in Physics.OverlapSphere(player.transform.position, TrentaConfig.PurpleRainRadius))
{