Explorar o código

- Fixed homun hp/sp growth rates stacking with HP/SP passive increasing skills.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8514 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=19) %!d(string=hai) anos
pai
achega
79dce13c08
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 2 0
      Changelog-Trunk.txt
  2. 2 4
      src/map/mercenary.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/08/28
+	* Fixed homun hp/sp growth rates stacking with HP/SP passive increasing
+	  skills. [Skotlex]
 	* Applied Mpeg's work on GS [Toms]
 	  ( http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt )
 2006/08/27

+ 2 - 4
src/map/mercenary.c

@@ -250,10 +250,8 @@ int merc_hom_levelup(struct homun_data *hd)
 	else
 		growth_luk = rand(hd->homunculusDB->gminLUK, hd->homunculusDB->gmaxLUK) ;
 
-	hd->base_status.max_hp += growth_max_hp ;
-	hd->base_status.max_sp += growth_max_sp ;
-	hd->master->homunculus.max_hp = hd->base_status.max_hp ;
-	hd->master->homunculus.max_sp = hd->base_status.max_sp ;
+	hd->master->homunculus.max_hp += growth_max_hp;
+	hd->master->homunculus.max_sp += growth_max_sp;
 	hd->master->homunculus.str += growth_str ;
 	hd->master->homunculus.agi += growth_agi ;
 	hd->master->homunculus.vit += growth_vit ;