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:
Shauren
2015-02-21 13:08:33 +01:00
parent 6ff1764084
commit 68fceee10e
14 changed files with 74 additions and 105 deletions

View File

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