Преглед изворни кода

- Fixed status changes that can't be reduced and have a passed duration of 0 'failing' when the inner code will give it some duration (eg: the weight icons)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10230 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex пре 18 година
родитељ
комит
1a54f19292
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/map/status.c

+ 1 - 1
src/map/status.c

@@ -4439,7 +4439,7 @@ int status_get_sc_def(struct block_list *bl, int type, int rate, int tick, int f
 		//Effect that cannot be reduced? Likely a buff.
 		if (!(rand()%10000 < rate))
 			return 0;
-		return tick;
+		return tick?tick:1;
 	}
 	
 	if (sd) {