diff options
author | UbitUmarov | 2019-02-26 13:38:03 +0000 |
---|---|---|
committer | UbitUmarov | 2019-02-26 13:38:03 +0000 |
commit | e24adb9ea12d68f743b5936d6b04899dcef83dfc (patch) | |
tree | f3177a528d18ae4ca888cdf26f1336476e275911 | |
parent | buffers in pool have no data, better mk that clear (diff) | |
download | opensim-SC-e24adb9ea12d68f743b5936d6b04899dcef83dfc.zip opensim-SC-e24adb9ea12d68f743b5936d6b04899dcef83dfc.tar.gz opensim-SC-e24adb9ea12d68f743b5936d6b04899dcef83dfc.tar.bz2 opensim-SC-e24adb9ea12d68f743b5936d6b04899dcef83dfc.tar.xz |
mantis 6569: restore full health on invulnerable set to true; combat module is outdated and needs work. By then the proposal on this mantis should be reviewed
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
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 | ||