Skip to content

Commit 4d2d375

Browse files
Ensure max health scaling
1 parent 126fbc7 commit 4d2d375

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

soh/soh/Enhancements/ExtraModes/RandomizedEnemySizes.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ static void RandomizedEnemySizes(void* refActor) {
6060

6161
// Ensure the scaled health doesn't go below zero
6262
actor->colChkInfo.health = fmax(scaledHealth, 1.0f);
63+
64+
// Ensure maximum health gets set
65+
SetActorMaximumHealth(actor, actor->colChkInfo.health);
6366
}
6467
}
6568

0 commit comments

Comments
 (0)