i wanted to change the type== to technique== and add a technique parameter as i put below
since technique is currently not in spellbookentry class do you have a problem with me adding it or is there an already easier way to get the technique
Code: Select all
void Player::UnlockTSSpells(int32 technique) {
vector<SpellBookEntry*>::iterator itr;
MSpellsBook.writelock(__FUNCTION__, __LINE__);
for (itr = spells.begin(); itr != spells.end(); itr++) {
if ((*itr)->type == SPELL_BOOK_TYPE_TRADESKILL)
ModifySpellStatus(*itr, 66);
}
MSpellsBook.releasewritelock(__FUNCTION__, __LINE__);
// Lock all other types
LockAllSpells();
}