summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-12 15:40:13 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-12 15:40:13 +0000
commit99e233fb1108a482dfa5da7d1604000d5c844de9 (patch)
treebf13f3cc17e9e71b13e18cc968e050353fab7e39 /src/map
parent77a7d0656299fa84d1229af4f852fe2a52e567bd (diff)
downloadhercules-99e233fb1108a482dfa5da7d1604000d5c844de9.tar.gz
hercules-99e233fb1108a482dfa5da7d1604000d5c844de9.tar.bz2
hercules-99e233fb1108a482dfa5da7d1604000d5c844de9.tar.xz
hercules-99e233fb1108a482dfa5da7d1604000d5c844de9.zip
Fixed a mildly broken portion of code responsible for clearing status from skills you no longer own upon job change.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16413 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5ea99fe43..27e54b344 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6978,6 +6978,7 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
pc_setglobalreg(sd, "CLONE_SKILL", 0);
pc_setglobalreg(sd, "CLONE_SKILL_LV", 0);
}
+
if(sd->reproduceskill_id) {
if( sd->status.skill[sd->reproduceskill_id].flag == SKILL_FLAG_PLAGIARIZED ) {
sd->status.skill[sd->reproduceskill_id].id = 0;
@@ -6989,8 +6990,8 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
pc_setglobalreg(sd, "REPRODUCE_SKILL",0);
pc_setglobalreg(sd, "REPRODUCE_SKILL_LV",0);
}
- if ((b_class&&MAPID_UPPERMASK) != (sd->class_&MAPID_UPPERMASK))
- { //Things to remove when changing class tree.
+
+ if ( (b_class&MAPID_UPPERMASK) != (sd->class_&MAPID_UPPERMASK) ) { //Things to remove when changing class tree.
const int class_ = pc_class2idx(sd->status.class_);
short id;
for(i = 0; i < MAX_SKILL_TREE && (id = skill_tree[class_][i].id) > 0; i++) {