Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -1,4 +1,4 @@
namespace Barotrauma
namespace Barotrauma
{
/// <summary>
/// Makes a specific character invulnerable to damage and unable to die.
@@ -36,13 +36,21 @@ namespace Barotrauma
{
if (target != null && target is Character character)
{
if (UpdateAfflictions)
if (Enabled)
{
character.CharacterHealth.Unkillable = Enabled;
if (UpdateAfflictions)
{
character.CharacterHealth.Unkillable = true;
}
else
{
character.GodMode = true;
}
}
else
{
character.GodMode = Enabled;
character.CharacterHealth.Unkillable = false;
character.GodMode = false;
}
}
}