summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 19:08:44 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 19:08:44 +0000
commit756284de71ecc32123edb92e88edd145c0301e66 (patch)
tree3a70778e4d7d33ee5a62877c44414348c5f841fc
parenta43b30b84b75d2eb8fb2badf329cc5c073252dde (diff)
downloadhercules-756284de71ecc32123edb92e88edd145c0301e66.tar.gz
hercules-756284de71ecc32123edb92e88edd145c0301e66.tar.bz2
hercules-756284de71ecc32123edb92e88edd145c0301e66.tar.xz
hercules-756284de71ecc32123edb92e88edd145c0301e66.zip
Fixed skills not showing after using @allskill
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@265 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog.txt1
-rw-r--r--src/map/pc.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 76f6443b9..6c0f4452a 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,6 +1,7 @@
Date Added
11/19
* Re-added check for empty bottle when using aqua benedicta. [Valaris]
+ * Fixed skills not showing after using @allskill [celest]
11/18
* Added a line to @unmute, added @mute. [celest]
diff --git a/src/map/pc.c b/src/map/pc.c
index ca506ad1c..2ec8b8875 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4797,9 +4797,11 @@ int pc_allskillup(struct map_session_data *sd)
}
else {
for(i=0;(id=skill_tree[s][c][i].id)>0;i++){
- if(sd->status.skill[id].id==0 && (!(skill_get_inf2(id)&0x01) || battle_config.quest_skill_learn) )
+ if(sd->status.skill[id].id==0 && (!(skill_get_inf2(id)&0x01) || battle_config.quest_skill_learn) ) {
+ sd->status.skill[id].id = id; // celest
// sd->status.skill[id].lv=skill_get_max(id);
- sd->status.skill[id].lv=skill_tree_get_max(id, sd->status.class); // celest
+ sd->status.skill[id].lv = skill_tree_get_max(id, sd->status.class); // celest
+ }
}
}
pc_calcstatus(sd,0);