Core/Spells: Remove large function from header

This commit is contained in:
Shauren
2025-12-13 22:40:23 +01:00
parent f901acd66b
commit 8d8c26eda1
2 changed files with 7 additions and 5 deletions

View File

@@ -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())

View File

@@ -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;