Browse Source

update

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@778 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber 20 years ago
parent
commit
095a938fb3
3 changed files with 7 additions and 3 deletions
  1. 4 0
      Changelog.txt
  2. 1 1
      src/map/atcommand.c
  3. 2 2
      src/map/pc.c

+ 4 - 0
Changelog.txt

@@ -1,5 +1,9 @@
 Date	Added
 Date	Added
 12/24
 12/24
+	* @skilltree was looking outside of the particular class
+	  of the char to see if they could do a skill [MouseJstr]
+	* Fixed a calc_skill_tree bug where too many skills were
+	  visible [MouseJstr]
 	* Added Dev/GDB_reports.txt, take a look in it devs [Ajarn]
 	* Added Dev/GDB_reports.txt, take a look in it devs [Ajarn]
         * Corrected description for player_skill_nofootset and monster_skill_nofootset
         * Corrected description for player_skill_nofootset and monster_skill_nofootset
           in battle_athena.conf [celest]
           in battle_athena.conf [celest]

+ 1 - 1
src/map/atcommand.c

@@ -7139,7 +7139,7 @@ atcommand_skilltree(const int fd, struct map_session_data* sd,
 	  tbl, pc_checkskill(pl_sd, 1));
 	  tbl, pc_checkskill(pl_sd, 1));
   clif_displaymessage(fd, output);
   clif_displaymessage(fd, output);
 
 
-  for (j = 0; j < MAX_SKILL; j++) {
+  for (j = 0; skill_tree[s][c][j].id != 0; j++) {
     if (skill_tree[s][c][j].id == skillnum) {
     if (skill_tree[s][c][j].id == skillnum) {
       skillidx = j;
       skillidx = j;
       break;
       break;

+ 2 - 2
src/map/pc.c

@@ -997,8 +997,8 @@ int pc_calc_skilltree(struct map_session_data *sd)
 	c = pc_calc_skilltree_normalize_job(c, sd);
 	c = pc_calc_skilltree_normalize_job(c, sd);
 
 
 	for(i=0;i<MAX_SKILL;i++){
 	for(i=0;i<MAX_SKILL;i++){
-                if(skill_get_inf2(i))
-                        continue;
+//                if(skill_get_inf2(i) & 0x01)
+//                        continue;
 		if (sd->status.skill[i].flag != 13)   
 		if (sd->status.skill[i].flag != 13)   
 		        sd->status.skill[i].id=0;
 		        sd->status.skill[i].id=0;
 		if (sd->status.skill[i].flag && sd->status.skill[i].flag != 13){	// cardƒXƒLƒ‹‚È‚ç�A
 		if (sd->status.skill[i].flag && sd->status.skill[i].flag != 13){	// cardƒXƒLƒ‹‚È‚ç�A