Core/Conditions: Allow ConditionTypeOrReference to be 0 for conditions that have ScriptName set
Port From (https://github.com/TrinityCore/TrinityCore/commit/b60e5b2a7d6871653f7b93ef90553c6d650bece0)
This commit is contained in:
@@ -1179,6 +1179,15 @@ namespace Game
|
||||
{
|
||||
switch (cond.ConditionType)
|
||||
{
|
||||
case ConditionTypes.None:
|
||||
{
|
||||
if (cond.ScriptId == 0)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"{cond.ToString(true)} must have a `ScriptName` in `condition` table, ignoring.");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ConditionTypes.Aura:
|
||||
{
|
||||
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo(cond.ConditionValue1, Difficulty.None);
|
||||
|
||||
Reference in New Issue
Block a user