v1.5.7.0 (Summer Update Hotfix 1)

This commit is contained in:
Regalis11
2024-06-19 18:42:16 +03:00
parent 230d1b6e78
commit 169eced79a
11 changed files with 38 additions and 20 deletions
@@ -4831,8 +4831,6 @@ namespace Barotrauma
}
#endif
ApplyStatusEffects(ActionType.OnDeath, 1.0f);
AnimController.Frozen = false;
Character killer = causeOfDeathAffliction?.Source;
@@ -4866,7 +4864,10 @@ namespace Barotrauma
info.LastResistanceMultiplierSkillLossRespawn = GetAbilityResistance(Tags.SkillLossRespawnResistance);
}
//it's important that we set isDead before executing the status effects,
//otherwise a statuseffect might kill the character "again" and trigger a loop that crashes the game
isDead = true;
ApplyStatusEffects(ActionType.OnDeath, 1.0f);
#if CLIENT
// Keep permadeath status in sync (to show it correctly in the UI, the server takes care of the actual logic)