Fixed player-controlled creatures being able to do damage to themselves and RepairTools causing damage to the user regardless of the user's skills.

This commit is contained in:
Joonas Rikkonen
2018-04-18 15:04:18 +03:00
parent edf5bacc89
commit eed7b72b4e
2 changed files with 6 additions and 2 deletions
@@ -142,6 +142,7 @@ namespace Barotrauma.Items.Components
if (Rand.Range(0.0f, 0.5f) > degreeOfSuccess) continue;
ignoredBodies.Add(limb.body.FarseerBody);
}
ignoredBodies.Add(character.AnimController.Collider.FarseerBody);
IsActive = true;
activeTimer = 0.1f;