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

0.9.1.0-post-fixes
UbitUmarov 2019-02-26 13:38:03 +00:00
parent 91569e00a0
commit e24adb9ea1
1 changed files with 6 additions and 1 deletions

View File

@ -523,7 +523,12 @@ namespace OpenSim.Region.Framework.Scenes
public bool Invulnerable public bool Invulnerable
{ {
set { m_invulnerable = value; } set
{
m_invulnerable = value;
if(value && Health != 100.0f)
Health = 100.0f;
}
get { return m_invulnerable; } get { return m_invulnerable; }
} }