mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
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
This commit is contained in:
@@ -523,7 +523,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public bool Invulnerable
|
||||
{
|
||||
set { m_invulnerable = value; }
|
||||
set
|
||||
{
|
||||
m_invulnerable = value;
|
||||
if(value && Health != 100.0f)
|
||||
Health = 100.0f;
|
||||
}
|
||||
get { return m_invulnerable; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user