Core/Auras: Don't save liquid auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/2bea816bbec6ba9d50f7bd6725806e81c6cafaae)
This commit is contained in:
@@ -2905,7 +2905,15 @@ namespace Game.Entities
|
||||
spellInfo.AttributesCu &= ~SpellCustomAttributes.CanCrit;
|
||||
}
|
||||
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loaded spell custom attributes in {0} ms", Time.GetMSTimeDiffToNow(oldMSTime));
|
||||
// add custom attribute to liquid auras
|
||||
foreach (var liquid in CliDB.LiquidTypeStorage.Values)
|
||||
{
|
||||
if (liquid.SpellID != 0)
|
||||
foreach (SpellInfo spellInfo in _GetSpellInfo(liquid.SpellID))
|
||||
spellInfo.AttributesCu |= SpellCustomAttributes.AuraCannotBeSaved;
|
||||
}
|
||||
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loaded SpellInfo custom attributes in {0} ms", Time.GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void ApplySpellFix(int[] spellIds, Action<SpellInfo> fix)
|
||||
|
||||
Reference in New Issue
Block a user