diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-18 20:08:24 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-18 20:08:24 +0000 |
commit | f8d306dc977e1014ed8cf389614d73218b65b1af (patch) | |
tree | b807c233baddbe8317c9d327c9ff4241f05dfc06 /src | |
parent | c84d6f0062cefc26af7a4d55336bc06c68a15ac3 (diff) | |
download | hercules-f8d306dc977e1014ed8cf389614d73218b65b1af.tar.gz hercules-f8d306dc977e1014ed8cf389614d73218b65b1af.tar.bz2 hercules-f8d306dc977e1014ed8cf389614d73218b65b1af.tar.xz hercules-f8d306dc977e1014ed8cf389614d73218b65b1af.zip |
- Updated @homshuffle to preserve current hom's exp.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9672 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 95002473e..f4be3b421 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -10013,6 +10013,7 @@ int atcommand_homshuffle( { struct homun_data *hd; int lv, i; + unsigned int exp; TBL_PC* tsd = sd; nullpo_retr(-1, sd); @@ -10040,6 +10041,7 @@ int atcommand_homshuffle( return -1; lv = hd->homunculus.level; + exp = hd->homunculus.exp; //Reset values to level 1. merc_reset_stats(hd); //Level it back up @@ -10047,6 +10049,7 @@ int atcommand_homshuffle( hd->homunculus.exp += hd->exp_next; merc_hom_levelup(hd); } + hd->homunculus.exp = exp; status_calc_homunculus(hd,0); status_percent_heal(&hd->bl, 100, 100); clif_misceffect2(&hd->bl,568); |