Core/Conditions: Fixed CONDITION_AURA to allow effect index greater than 2

Port From (https://github.com/TrinityCore/TrinityCore/commit/33c3ea1013787b15ff5eacc556bb0f0b41c8ec37)
This commit is contained in:
hondacrx
2022-06-24 21:48:38 -04:00
parent 2436ef0644
commit 4154d41d6b
+2 -2
View File
@@ -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;