Core/Auras: Implement SPELL_AURA_IGNORE_SPELL_COOLDOWN
Port From (https://github.com/TrinityCore/TrinityCore/commit/87f350b1c194442ff48cbb9290c162d21a93f0e8)
This commit is contained in:
@@ -632,6 +632,9 @@ namespace Game.Spells
|
||||
|
||||
public bool HasCooldown(SpellInfo spellInfo, uint itemId = 0)
|
||||
{
|
||||
if (_owner.HasAuraTypeWithAffectMask(AuraType.IgnoreSpellCooldown, spellInfo))
|
||||
return false;
|
||||
|
||||
if (_spellCooldowns.ContainsKey(spellInfo.Id))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user