aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index cfb1be4..f3e2179 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -523,7 +523,12 @@ namespace OpenSim.Region.Framework.Scenes
523 523
524 public bool Invulnerable 524 public bool Invulnerable
525 { 525 {
526 set { m_invulnerable = value; } 526 set
527 {
528 m_invulnerable = value;
529 if(value && Health != 100.0f)
530 Health = 100.0f;
531 }
527 get { return m_invulnerable; } 532 get { return m_invulnerable; }
528 } 533 }
529 534