(203af66e8) Allow to attack other enemies too.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:56:32 +03:00
parent fe5f386358
commit 6b1500aa8d
13 changed files with 170 additions and 236 deletions
@@ -1796,6 +1796,10 @@ namespace Barotrauma
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
if (!broken)
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
if (body == null || !body.Enabled || !inWater || ParentInventory != null || Removed) { return; }