diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-12 13:50:53 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-12 13:50:53 +0000 |
commit | 6121227d5d31f03f3079e110a60d4673649eef1c (patch) | |
tree | be53d46fc60a1fab0a9819a378c54c3bef7df747 /src/map/status.c | |
parent | 8587fd888ac11459fda213488f2ea565175a83b4 (diff) | |
download | hercules-6121227d5d31f03f3079e110a60d4673649eef1c.tar.gz hercules-6121227d5d31f03f3079e110a60d4673649eef1c.tar.bz2 hercules-6121227d5d31f03f3079e110a60d4673649eef1c.tar.xz hercules-6121227d5d31f03f3079e110a60d4673649eef1c.zip |
- 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |