mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Remove large function from header
This commit is contained in:
@@ -1105,6 +1105,12 @@ void SpellHistory::SendClearCooldowns(std::vector<int32> const& cooldowns) const
|
||||
}
|
||||
}
|
||||
|
||||
SpellHistory::CooldownStorageType::iterator SpellHistory::EraseCooldown(CooldownStorageType::iterator itr)
|
||||
{
|
||||
_categoryCooldowns.erase(itr->second.CategoryId);
|
||||
return _spellCooldowns.erase(itr);
|
||||
}
|
||||
|
||||
void SpellHistory::SendSetSpellCharges(uint32 chargeCategoryId, ChargeEntryCollection const& chargeCollection) const
|
||||
{
|
||||
if (Player* player = GetPlayerOwner())
|
||||
|
||||
@@ -214,11 +214,7 @@ private:
|
||||
void UpdateCooldownRecoveryRate(CooldownStorageType::iterator& itr, float modChange, bool apply);
|
||||
void ResetCooldown(CooldownStorageType::iterator& itr, bool update = false);
|
||||
void SendClearCooldowns(std::vector<int32> const& cooldowns) const;
|
||||
CooldownStorageType::iterator EraseCooldown(CooldownStorageType::iterator itr)
|
||||
{
|
||||
_categoryCooldowns.erase(itr->second.CategoryId);
|
||||
return _spellCooldowns.erase(itr);
|
||||
}
|
||||
CooldownStorageType::iterator EraseCooldown(CooldownStorageType::iterator itr);
|
||||
|
||||
void SendSetSpellCharges(uint32 chargeCategoryId, ChargeEntryCollection const& chargeCollection) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user