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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user