Core/Spells: Implement SpellMisc.LaunchDelay
Port From (https://github.com/TrinityCore/TrinityCore/commit/c924840ce7fa7289fe73fb15b0f022bc74618ee1)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user