From e31d762f3329a1ef553902720a2fc8cbfae3389e Mon Sep 17 00:00:00 2001 From: skotlex Date: Sat, 16 Sep 2006 20:18:35 +0000 Subject: [PATCH] - Fixed the status change duration reduction equation was was totally wrong, thanks to k3dt git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8776 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 3 +++ src/map/status.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 936694f604..470b1ff122 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,9 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2006/09/16 + * Fixed the status change duration reduction equation was was totally + wrong, thanks to k3dt [Skotlex] 2006/09/15 * Now mobs won't do a distance check to lose their target on every ai iteration, but only when they finish walking (unless you set monster_ai&1) diff --git a/src/map/status.c b/src/map/status.c index c314c824bc..7045e1f8ba 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4467,7 +4467,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val if (def && tick && !(flag&2)) { - tick -= rate*def/10000; + tick -= tick*def/10000; if (tick <= 0) return 0; }