Jelajahi Sumber

- Fixed stun's duration not getting reduced by vit + luk/3

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5531 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 tahun lalu
induk
melakukan
f1231f7723
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/status.c

+ 1 - 0
Changelog-Trunk.txt

@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/03/09
+	* Fixed stun's duration not getting reduced by vit + luk/3 [Skotlex]
 	* Fixed #itemlist not taking into consideration crafted/forged items and
 	  pet eggs. [Skotlex]
 2006/03/08

+ 2 - 2
src/map/status.c

@@ -3413,8 +3413,8 @@ int status_get_sc_tick(struct block_list *bl, int type, int tick)
 		case SC_FREEZE:				/* 凍結 */
 			rate = 100*status_get_mdef(bl);
 		break;
-		case SC_STUN:				/* スタン(val2にミリ秒セット) */
-			rate = status_get_sc_def_vit(bl);
+		case SC_STUN:	//Reduction in duration is the same as reduction in rate.
+			rate = status_get_sc_def(bl, type);
 		break;
 		case SC_DPOISON:			/* 猛毒 */
 		case SC_POISON:				/* 毒 */