summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 17:18:42 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 17:18:42 +0000
commited891a3a49a7356a52a6cdd8ff8da3838a3c704a (patch)
treef00059198a315fc632bbc55e56496a953ce445aa /src/map
parent4e8a2d0e62c0669da6847b5d2ef735c63389d8c7 (diff)
downloadhercules-ed891a3a49a7356a52a6cdd8ff8da3838a3c704a.tar.gz
hercules-ed891a3a49a7356a52a6cdd8ff8da3838a3c704a.tar.bz2
hercules-ed891a3a49a7356a52a6cdd8ff8da3838a3c704a.tar.xz
hercules-ed891a3a49a7356a52a6cdd8ff8da3838a3c704a.zip
Fixed Ranked Taekwon skill reset bug, bugreport:3230
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15313 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1eed1a889..944775d1b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5579,9 +5579,14 @@ int pc_resetskill(struct map_session_data* sd, int flag)
{
int i, lv, inf2, skill_point=0;
nullpo_ret(sd);
+ if( !(flag&2) ) { //Remove stuff lost when resetting skills.
+
+ /**
+ * It has been confirmed on official server that when you reset skills with a ranked tweakwon your skills are not reset (because you have all of them anyway)
+ **/
+ if( (sd->class_&MAPID_UPPERMASK) == MAPID_TAEKWON && sd->status.base_level >= 90 && pc_famerank(sd->status.char_id, MAPID_TAEKWON) )
+ return 0;
- if( !(flag&2) )
- { //Remove stuff lost when resetting skills.
if( pc_checkskill(sd, SG_DEVIL) && !pc_nextjobexp(sd) )
clif_status_load(&sd->bl, SI_DEVIL, 0); //Remove perma blindness due to skill-reset. [Skotlex]
i = sd->sc.option;