summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-22 17:21:23 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-22 17:21:23 +0000
commitfbd18e2ae54bbf77e362614a461deafadd4b6bac (patch)
treed2f110abcc9595ccc89f1b9d202d219944a00a55
parent60fe89f05fdaaf600898c06f712282f0ac7b0387 (diff)
downloadhercules-fbd18e2ae54bbf77e362614a461deafadd4b6bac.tar.gz
hercules-fbd18e2ae54bbf77e362614a461deafadd4b6bac.tar.bz2
hercules-fbd18e2ae54bbf77e362614a461deafadd4b6bac.tar.xz
hercules-fbd18e2ae54bbf77e362614a461deafadd4b6bac.zip
Minstrel/Wanderer changesex bugfix, bugreport:5147
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15214 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/char_sql/char.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 49fc3f2fc..3e3f12c62 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2060,7 +2060,9 @@ int parse_fromlogin(int fd)
{
if( class_[i] == JOB_BARD || class_[i] == JOB_DANCER ||
class_[i] == JOB_CLOWN || class_[i] == JOB_GYPSY ||
- class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER )
+ class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER ||
+ class_[i] == JOB_WANDERER || class_[i] == JOB_WANDERER_T ||
+ class_[i] == JOB_MINSTREL || class_[i] == JOB_MINSTREL_T )
{
// job modification
if( class_[i] == JOB_BARD || class_[i] == JOB_DANCER )
@@ -2069,6 +2071,10 @@ int parse_fromlogin(int fd)
class_[i] = (sex ? JOB_CLOWN : JOB_GYPSY);
else if( class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER )
class_[i] = (sex ? JOB_BABY_BARD : JOB_BABY_DANCER);
+ else if( class_[i] == JOB_MINSTREL || class_[i] == JOB_WANDERER )
+ class_[i] = (sex ? JOB_MINSTREL : JOB_WANDERER);
+ else if( class_[i] == JOB_MINSTREL_T || class_[i] == JOB_WANDERER_T )
+ class_[i] = (sex ? JOB_MINSTREL_T : JOB_WANDERER_T);
// remove specifical skills of classes 19,20 4020,4021 and 4042,4043
if( SQL_ERROR == Sql_Query(sql_handle, "UPDATE `%s` SET `skill_point` = `skill_point` +"
" (SELECT SUM(lv) FROM `%s` WHERE `char_id` = '%d' AND `id` >= '315' AND `id` <= '330' AND `lv` > '0')"