diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-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 b85a138..56369f5 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3230,7 +3230,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
3230 | //if (localid == 0) | 3230 | //if (localid == 0) |
3231 | //continue; | 3231 | //continue; |
3232 | 3232 | ||
3233 | Health -= coldata[localid] * 5; | 3233 | SceneObjectPart part = m_scene.GetSceneObjectPart(localid); |
3234 | |||
3235 | if (part != null && part.ParentGroup.Damage != -1.0f) | ||
3236 | Health -= part.ParentGroup.Damage; | ||
3237 | else | ||
3238 | Health -= coldata[localid] * 5; | ||
3234 | 3239 | ||
3235 | if (Health <= 0) | 3240 | if (Health <= 0) |
3236 | { | 3241 | { |