- Updated @homshuffle to preserve current hom's exp.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9672 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
ae58a47909
commit
eb86aea493
@ -10013,6 +10013,7 @@ int atcommand_homshuffle(
|
|||||||
{
|
{
|
||||||
struct homun_data *hd;
|
struct homun_data *hd;
|
||||||
int lv, i;
|
int lv, i;
|
||||||
|
unsigned int exp;
|
||||||
TBL_PC* tsd = sd;
|
TBL_PC* tsd = sd;
|
||||||
|
|
||||||
nullpo_retr(-1, sd);
|
nullpo_retr(-1, sd);
|
||||||
@ -10040,6 +10041,7 @@ int atcommand_homshuffle(
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
lv = hd->homunculus.level;
|
lv = hd->homunculus.level;
|
||||||
|
exp = hd->homunculus.exp;
|
||||||
//Reset values to level 1.
|
//Reset values to level 1.
|
||||||
merc_reset_stats(hd);
|
merc_reset_stats(hd);
|
||||||
//Level it back up
|
//Level it back up
|
||||||
@ -10047,6 +10049,7 @@ int atcommand_homshuffle(
|
|||||||
hd->homunculus.exp += hd->exp_next;
|
hd->homunculus.exp += hd->exp_next;
|
||||||
merc_hom_levelup(hd);
|
merc_hom_levelup(hd);
|
||||||
}
|
}
|
||||||
|
hd->homunculus.exp = exp;
|
||||||
status_calc_homunculus(hd,0);
|
status_calc_homunculus(hd,0);
|
||||||
status_percent_heal(&hd->bl, 100, 100);
|
status_percent_heal(&hd->bl, 100, 100);
|
||||||
clif_misceffect2(&hd->bl,568);
|
clif_misceffect2(&hd->bl,568);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user