Use GetPermanentActorValue() in the health bar patch
This commit is contained in:
parent
79643dd981
commit
0a311b78f7
@ -22,7 +22,7 @@ private:
|
||||
auto playerAV = RE::PlayerCharacter::GetSingleton()->AsActorValueOwner();
|
||||
auto currentHealth = playerAV->GetActorValue(RE::ActorValue::kHealth);
|
||||
|
||||
if (currentHealth < playerAV->GetBaseActorValue(RE::ActorValue::kHealth) && currentHealth > 0) {
|
||||
if (currentHealth < playerAV->GetPermanentActorValue(RE::ActorValue::kHealth) && currentHealth > 0) {
|
||||
auto uiMovie = RE::UI::GetSingleton()->GetMovieView(RE::HUDMenu::MENU_NAME);
|
||||
|
||||
if (uiMovie) {
|
||||
|
Loading…
Reference in New Issue
Block a user