Reminder to self: press ctrl+s before committing

This commit is contained in:
Joonas Rikkonen
2018-03-09 18:04:14 +02:00
parent a8dda856cc
commit c02b8a17fe

View File

@@ -281,7 +281,7 @@ namespace Barotrauma
if (duration > 0.0f && !Stackable)
{
//ignore if not stackable and there's already an identical statuseffect
DurationListElement existingEffect = DurationList.Find(d => d.Parent == this && d.Targets.Count == 1 && d.Targets[0] == target));
DurationListElement existingEffect = DurationList.Find(d => d.Parent == this && d.Targets.Count == 1 && d.Targets[0] == target);
if (existingEffect != null)
{
existingEffect.Timer = Math.Max(existingEffect.Timer, duration);