summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 05:14:43 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 05:14:43 +0000
commit6d73a4259ef04446350dbad598831163d518b20e (patch)
treedc797b387916a686c41010e6e9ec98614fac863a
parent9081aa1f18b43e0e28f8a04b85bdceb555951c72 (diff)
downloadhercules-6d73a4259ef04446350dbad598831163d518b20e.tar.gz
hercules-6d73a4259ef04446350dbad598831163d518b20e.tar.bz2
hercules-6d73a4259ef04446350dbad598831163d518b20e.tar.xz
hercules-6d73a4259ef04446350dbad598831163d518b20e.zip
/resetstate also resets taekwon mission, bugreport:2200
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15384 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/clif.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c540ea64c..d4f0c5c80 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10634,9 +10634,14 @@ void clif_parse_ResetChar(int fd, struct map_session_data *sd)
if( RFIFOW(fd,2) )
pc_resetskill(sd,1);
- else
+ else {
pc_resetstate(sd);
-
+ if( sd->mission_mobid ) { //bugreport:2200
+ sd->mission_mobid = 0;
+ sd->mission_count = 0;
+ pc_setglobalreg(sd,"TK_MISSION_ID", 0);
+ }
+ }
log_atcommand(sd, get_atcommand_level("reset"), RFIFOW(fd,2) ? "/resetskill" : "/resetstate");
}