Ver código fonte

- 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
skotlex 18 anos atrás
pai
commit
eb86aea493
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/map/atcommand.c

+ 3 - 0
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);