while(newxp >= nextlevelxp && newxp > 0) { ++level; li = objmgr.GetLevelInfo(getRace(), getClass(), level); if(li == NULL) return; newxp -= nextlevelxp; nextlevelxp = li->XPToNextLevel; levelup = true; if(level > 9) AddTalentPointsToAllSpec( 1 ); if(level >= GetMaxLevel()) break; } if(level > GetMaxLevel()) level = GetMaxLevel();
while(newxp >= nextlevelxp && newxp > 0) { ++level; li = objmgr.GetLevelInfo(getRace(), getClass(), level); if(li == NULL) return; newxp -= nextlevelxp; nextlevelxp = li->XPToNextLevel; levelup = true; if(level == 15) AddTalentPointsToAllSpec( 1 ); break; if(level == 30) AddTalentPointsToAllSpec( 1 ); break; if(level == 45) AddTalentPointsToAllSpec( 1 ); break; if(level == 60) AddTalentPointsToAllSpec( 1 ); break; if(level >= GetMaxLevel()) break; }
if(!(level % 15)) AddTalentPointsToAllSpec( 1 );