From 8fc9ee1d8118bc0c2607ae4886d774f8926a06f8 Mon Sep 17 00:00:00 2001 From: Lordmau5 Date: Wed, 18 Jan 2023 22:39:10 +0100 Subject: [PATCH] Fix effect duration overrides not working properly --- GTAChaos/src/effects/abstract/AbstractEffect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GTAChaos/src/effects/abstract/AbstractEffect.cs b/GTAChaos/src/effects/abstract/AbstractEffect.cs index f2a055f..627013c 100644 --- a/GTAChaos/src/effects/abstract/AbstractEffect.cs +++ b/GTAChaos/src/effects/abstract/AbstractEffect.cs @@ -108,7 +108,7 @@ public int GetDuration(int duration = -1) if (this.Duration != -1) { - duration = Math.Min(Config.GetEffectDuration(), this.Duration); + duration = this.Duration; } else {