mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Spells: Removed leftovers of old cooldown handling
* Use ItemEffect.db2 data directly instead of copying it to another structure
This commit is contained in:
@@ -5655,8 +5655,8 @@ void Spell::EffectRechargeManaGem(SpellEffIndex /*effIndex*/)
|
||||
|
||||
if (Item* pItem = player->GetItemByEntry(item_id))
|
||||
{
|
||||
for (size_t x = 0; x < pProto->Effects.size(); ++x)
|
||||
pItem->SetSpellCharges(x, pProto->Effects[x].Charges);
|
||||
for (size_t x = 0; x < pProto->Effects.size() && x < 5; ++x)
|
||||
pItem->SetSpellCharges(x, pProto->Effects[x]->Charges);
|
||||
pItem->SetState(ITEM_CHANGED, player);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user