From 6121227d5d31f03f3079e110a60d4673649eef1c Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 12 Apr 2007 13:50:53 +0000 Subject: - 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10230 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 6847f0233..cdf74be31 100644 --- a/src/map/status.c +++ b/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) { -- cgit v1.2.3-70-g09d2