aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-06-24 21:36:08 +0200
committerShauren <shauren.trinity@gmail.com>2022-06-24 21:36:08 +0200
commit33c3ea1013787b15ff5eacc556bb0f0b41c8ec37 (patch)
treef0b98c1e34781157ec4ca1259306b9a5c8112133 /src/server
parent4ca8a1e95a4633fd57813fa5d8c5e45666dbe169 (diff)
Core/Conditions: Fixed CONDITION_AURA to allow effect index greater than 2
Diffstat (limited to 'src/server')
-rw-r--r--src/server/game/Conditions/ConditionMgr.cpp4
1 files changed, 2 insertions, 2 deletions
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;