From 2c99894e5aad38adf92ac8118c397c9ae61cccc8 Mon Sep 17 00:00:00 2001 From: lemongrass3110 Date: Mon, 18 Mar 2013 20:50:00 +0000 Subject: [PATCH] Follow up to r17201. Fixed a small logic issue. Related to: bugreport:7377 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17202 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/status.c b/src/map/status.c index a366eabbeb..cc80480c08 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6359,7 +6359,7 @@ int status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int ti //Effect that cannot be reduced? Likely a buff. if (!(rnd()%10000 < rate)) return 0; - return max(1,tick); + return tick ? tick : 1; } if (sd) {