Core/Auras: Don't save liquid auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/2bea816bbec6ba9d50f7bd6725806e81c6cafaae)
This commit is contained in:
@@ -2078,7 +2078,7 @@ namespace Framework.Constants
|
|||||||
NeedsAmmoData = 0x80000,
|
NeedsAmmoData = 0x80000,
|
||||||
BinarySpell = 0x100000,
|
BinarySpell = 0x100000,
|
||||||
SchoolmaskNormalWithMagic = 0x200000,
|
SchoolmaskNormalWithMagic = 0x200000,
|
||||||
LiquidAura = 0x400000,
|
DeprecatedLiquidAura = 0x400000,
|
||||||
IsTalent = 0x800000,
|
IsTalent = 0x800000,
|
||||||
AuraCannotBeSaved = 0x1000000
|
AuraCannotBeSaved = 0x1000000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3169,7 +3169,7 @@ namespace Game.Entities
|
|||||||
|
|
||||||
float hoverDelta = myHover - searcherHover;
|
float hoverDelta = myHover - searcherHover;
|
||||||
if (hoverDelta != 0.0f)
|
if (hoverDelta != 0.0f)
|
||||||
effectiveReach = MathF.Sqrt(effectiveReach * effectiveReach - hoverDelta * hoverDelta);
|
effectiveReach = MathF.Sqrt(Math.Max(effectiveReach * effectiveReach - hoverDelta * hoverDelta, 0.0f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ namespace Game.Movement
|
|||||||
float x, y, z;
|
float x, y, z;
|
||||||
if (updateDestination || _path == null)
|
if (updateDestination || _path == null)
|
||||||
{
|
{
|
||||||
float hoverDiff = Math.Abs(owner.GetHoverOffset() - GetTarget().GetHoverOffset());
|
|
||||||
if (_offset == 0)
|
if (_offset == 0)
|
||||||
{
|
{
|
||||||
if (GetTarget().IsWithinDistInMap(owner, SharedConst.ContactDistance))
|
if (GetTarget().IsWithinDistInMap(owner, SharedConst.ContactDistance))
|
||||||
|
|||||||
@@ -2905,7 +2905,15 @@ namespace Game.Entities
|
|||||||
spellInfo.AttributesCu &= ~SpellCustomAttributes.CanCrit;
|
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)
|
void ApplySpellFix(int[] spellIds, Action<SpellInfo> fix)
|
||||||
|
|||||||
Reference in New Issue
Block a user