Core/Spells: Implement SpellMisc.LaunchDelay

Port From (https://github.com/TrinityCore/TrinityCore/commit/c924840ce7fa7289fe73fb15b0f022bc74618ee1)
This commit is contained in:
hondacrx
2019-09-04 13:13:59 -04:00
parent 7066a959f1
commit 0877e73ff2
4 changed files with 61 additions and 36 deletions
+7
View File
@@ -78,6 +78,7 @@ namespace Game.Spells
RangeIndex = _misc.RangeIndex;
RangeEntry = CliDB.SpellRangeStorage.LookupByKey(_misc.RangeIndex);
Speed = _misc.Speed;
LaunchDelay = _misc.LaunchDelay;
SchoolMask = (SpellSchoolMask)_misc.SchoolMask;
AttributesCu = 0;
@@ -636,6 +637,11 @@ namespace Game.Spells
return !(HasAttribute(SpellAttr1.NoThreat) || HasAttribute(SpellAttr3.NoInitialAggro));
}
public bool HasHitDelay()
{
return Speed > 0.0f || LaunchDelay > 0.0f;
}
public WeaponAttackType GetAttackType()
{
WeaponAttackType result;
@@ -3751,6 +3757,7 @@ namespace Game.Spells
public uint RangeIndex { get; set; }
public SpellRangeRecord RangeEntry { get; set; }
public float Speed { get; set; }
public float LaunchDelay { get; set; }
public uint StackAmount { get; set; }
public uint[] Totem = new uint[SpellConst.MaxTotems];
public int[] Reagent = new int[SpellConst.MaxReagents];