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
parent
91569e00a0
commit
e24adb9ea1
|
@ -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; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue