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

This commit is contained in:
Shauren
2022-06-24 21:36:08 +02:00
parent 4ca8a1e95a
commit 33c3ea1013

View File

@@ -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;