From 33c3ea1013787b15ff5eacc556bb0f0b41c8ec37 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 24 Jun 2022 21:36:08 +0200 Subject: Core/Conditions: Fixed CONDITION_AURA to allow effect index greater than 2 --- src/server/game/Conditions/ConditionMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index f372e282e49..9377b4ff214 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -2117,9 +2117,9 @@ bool ConditionMgr::isConditionTypeValid(Condition* cond) const return false; } - if (cond->ConditionValue2 > EFFECT_2) + if (cond->ConditionValue2 >= MAX_SPELL_EFFECTS) { - TC_LOG_ERROR("sql.sql", "%s has non existing effect index (%u) (must be 0..2), skipped.", cond->ToString(true).c_str(), cond->ConditionValue2); + TC_LOG_ERROR("sql.sql", "%s has non existing effect index (%u) (must be 0..%u), skipped.", cond->ToString(true).c_str(), cond->ConditionValue2, MAX_SPELL_EFFECTS - 1); return false; } break; -- cgit v1.2.3