Core/Spells: Rename more SpellAttr9

Port From (https://github.com/TrinityCore/TrinityCore/commit/56a027131a130bc778ee34ddfa379c42580b510b)
This commit is contained in:
Hondacrx
2024-08-25 21:45:49 -04:00
parent 269f427e9a
commit bb26b47824
5 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -339,7 +339,7 @@ namespace Game.Spells
if (speed > 0.0f)
return (ulong)(Math.Floor((m_targets.GetDist2d() / speed + launchDelay) * 1000.0f));
}
else if (m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
else if (m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
return (ulong)(Math.Floor((m_spellInfo.Speed + launchDelay) * 1000.0f));
else if (m_spellInfo.Speed > 0.0f)
{
@@ -1988,7 +1988,7 @@ namespace Game.Spells
}
}
if (m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
hitDelay += m_spellInfo.Speed;
else if (m_spellInfo.Speed > 0.0f)
{
@@ -2057,7 +2057,7 @@ namespace Game.Spells
if (m_caster != go)
{
float hitDelay = m_spellInfo.LaunchDelay;
if (m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
hitDelay += m_spellInfo.Speed;
else if (m_spellInfo.Speed > 0.0f)
{
@@ -2137,7 +2137,7 @@ namespace Game.Spells
if (m_caster != corpse)
{
float hitDelay = m_spellInfo.LaunchDelay;
if (m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
hitDelay += m_spellInfo.Speed;
else if (m_spellInfo.Speed > 0.0f)
{
+2 -2
View File
@@ -3545,7 +3545,7 @@ namespace Game.Spells
m_preGeneratedPath.CalculatePath(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), false);
}
if (MathFunctions.fuzzyGt(m_spellInfo.Speed, 0.0f) && m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (MathFunctions.fuzzyGt(m_spellInfo.Speed, 0.0f) && m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
speed = m_preGeneratedPath.GetPathLength() / speed;
unitCaster.GetMotionMaster().MoveCharge(m_preGeneratedPath, speed, unitTarget, spellEffectExtraData);
@@ -3592,7 +3592,7 @@ namespace Game.Spells
float speed = MathFunctions.fuzzyGt(m_spellInfo.Speed, 0.0f) ? m_spellInfo.Speed : MotionMaster.SPEED_CHARGE;
if (MathFunctions.fuzzyGt(m_spellInfo.Speed, 0.0f) && m_spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (MathFunctions.fuzzyGt(m_spellInfo.Speed, 0.0f) && m_spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
speed = path.GetPathLength() / speed;
unitCaster.GetMotionMaster().MoveCharge(path, speed);
+1 -1
View File
@@ -4455,7 +4455,7 @@ namespace Game.Entities
case SpellEffectName.Jump:
case SpellEffectName.JumpDest:
case SpellEffectName.LeapBack:
if (spellInfo.Speed == 0 && spellInfo.SpellFamilyName == 0 && !spellInfo.HasAttribute(SpellAttr9.SpecialDelayCalculation))
if (spellInfo.Speed == 0 && spellInfo.SpellFamilyName == 0 && !spellInfo.HasAttribute(SpellAttr9.MissileSpeedIsDelayInSec))
spellInfo.Speed = MotionMaster.SPEED_CHARGE;
break;
}