Jelajahi Sumber

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12031 54d463be-8e91-2dee-dedb-b68131a5f0ec

reddozen 17 tahun lalu
induk
melakukan
25aebd3e08
2 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 2 0
      Changelog-Trunk.txt
  2. 6 0
      src/map/skill.c

+ 2 - 0
Changelog-Trunk.txt

@@ -7,6 +7,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 	* Added missing code to log main chat messages sent by whispering
 	  to main_chat_nick (bugreport:424) [ultramage]
 2008/01/07
+	* Small change to potion pitcher to allow potion healing rate item effects
+	  to be included in potion pitcher's heal rate. [Reddozen]
 	* Changed the code in status_change_timer so that a null pointer no longer
 	  causes a crash but prints an error instead.
 	* Corrected clones not copying over a player's skills properly. [Skotlex]

+ 6 - 0
src/map/skill.c

@@ -4082,6 +4082,12 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 							sp = sp * (100 + pc_checkskill(dstsd,MG_SRECOVERY)*10) / 100;
 					}
 				}
+				if (sd->itemgrouphealrate[37]>0)
+				{
+					hp += hp * sd->itemgrouphealrate[37] / 100;
+					sp += sp * sd->itemgrouphealrate[37] / 100;
+				}
+
 				if ((i = pc_skillheal_bonus(sd, skillid)))
 				{
 					hp += hp * i / 100;