From 9d980263608070842314af7778385d1821ac6b34 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 11 May 2009 17:46:02 +0000 Subject: Fixed Slow Grace decreasing aspd 10x less than it should (bugreport:2480). It was a mistake in r12923 where I didn't realize aspd_rate uses a scale of 1000, not 100. This also fixes Slow Grace not factoring in the Dance Lessons bonus (also 10x less than it should be). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13755 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 8cb891169..6e4394751 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3941,6 +3941,8 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha return (short)cap_value(speed,10,USHRT_MAX); } +/// Calculates an object's ASPD modifier (alters the base amotion value). +/// Note that the scale of aspd_rate is 1000 = 100%. static short status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int aspd_rate) { int i; @@ -4021,7 +4023,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change * sc->data[i=SC_ASPDPOTION0]) aspd_rate -= sc->data[i]->val2; if(sc->data[SC_DONTFORGETME]) - aspd_rate += sc->data[SC_DONTFORGETME]->val2; + aspd_rate += 10 * sc->data[SC_DONTFORGETME]->val2; if(sc->data[SC_LONGING]) aspd_rate += sc->data[SC_LONGING]->val2; if(sc->data[SC_STEELBODY]) -- cgit v1.2.3-60-g2f50