| 重置天赋的补丁 |
| 来源:魔兽私服,魔兽世界私服,免费魔兽私服发布网 时间:2008-8-25 12:00:00 |
Index:src/game/Player.cpp
===================================================================
---src/game/Player.cpp(revision593)
+++src/game/Player.cpp(workingcopy)
@@-5243,24+5243,16@@
voidPlayer::Reset_Talents()
{
unsignedintnumRows=sTalentStore.GetNumRows();
-SpellEntry*spellInfo;
for(unsignedinti=0;i<numRows;i++)//Loopthroughalltalents.
{
TalentEntry*tmpTalent=sTalentStore.LookupEntry(i);
+if(!tmpTalent)continue;
for(intj=0;j<5;j++)
{
if(tmpTalent->RankID[j]!=0)
{
-m_SSSPecificSpells.erase(tmpTalent->RankID[j]);
-spellInfo=sSpellStore.LookupEntry(tmpTalent->RankID[j]);
-if(spellInfo)
-{
-for(intj=0;j<3;j++)
-if(spellInfo->Effect[j]==SPELL_EFFECT_LEARN_SPELL)
-removeSpell(spellInfo->EffectTriggerSpell[j],false,0,0);
-
-removeSpellByHashName(spellInfo->NameHash);
-}
+removeSpell(tmpTalent->RankID[j],false,0,0);
+
}
else
break; |
|
|