From c3e9dbdb69f61ae3fbb682e00fabb680c73a8f00 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 3 Aug 2008 16:43:44 +0000 Subject: Re-implemented SC_WALKSPEED (used in npc scripting) according to official sources (followup to r13037). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13039 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/status.c b/src/map/status.c index 19fa38cf8..623fc3597 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3781,6 +3781,8 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha speed = 200; if( sc->data[SC_DEFENDER] ) speed = max(speed, 200); + if( sc->data[SC_WALKSPEED] ) // ChangeSpeed + speed = speed * sc->data[SC_WALKSPEED]->val1; } return (short)cap_value(speed,10,USHRT_MAX); -- cgit v1.2.3-70-g09d2