From 4154d41d6b908e2a88fa9337ff4564e3d3db0bec Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 24 Jun 2022 21:48:38 -0400 Subject: [PATCH] Core/Conditions: Fixed CONDITION_AURA to allow effect index greater than 2 Port From (https://github.com/TrinityCore/TrinityCore/commit/33c3ea1013787b15ff5eacc556bb0f0b41c8ec37) --- Source/Game/Conditions/ConditionManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Game/Conditions/ConditionManager.cs b/Source/Game/Conditions/ConditionManager.cs index 1091982bf..16d32862e 100644 --- a/Source/Game/Conditions/ConditionManager.cs +++ b/Source/Game/Conditions/ConditionManager.cs @@ -1254,9 +1254,9 @@ namespace Game return false; } - if (cond.ConditionValue2 > 2) + if (cond.ConditionValue2 >= SpellConst.MaxEffects) { - Log.outError(LogFilter.Sql, "{0} has non existing effect index ({1}) (must be 0..2), skipped", cond.ToString(), cond.ConditionValue2); + Log.outError(LogFilter.Sql, $"{cond.ToString(true)} has non existing effect index ({cond.ConditionValue2}) (must be 0..{SpellConst.MaxEffects - 1}), skipped"); return false; } break;