summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2015-12-29 18:50:48 +0800
committerHaru <haru@dotalux.com>2016-01-16 20:30:15 +0100
commitc156322ded28c695c17871d98abe071bb73dadd4 (patch)
tree919fcc98cc9b57c943f671c11ccca3c59d8f110a /src/map/status.c
parente951186d8eafc09de4e88224d5f2a3c9b19d6fae (diff)
downloadhercules-c156322ded28c695c17871d98abe071bb73dadd4.tar.gz
hercules-c156322ded28c695c17871d98abe071bb73dadd4.tar.bz2
hercules-c156322ded28c695c17871d98abe071bb73dadd4.tar.xz
hercules-c156322ded28c695c17871d98abe071bb73dadd4.zip
Removed Hard Coded data for SC_ALL_RIDING.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 00050e3ed..879f10efb 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5542,8 +5542,10 @@ unsigned short status_calc_speed(struct block_list *bl, struct status_change *sc
if(sc->data[SC_FUSION]) {
val = 25;
} else if (sd) {
- if (pc_isridingpeco(sd) || pc_isridingdragon(sd) || sd->sc.data[SC_ALL_RIDING])
+ if (pc_isridingpeco(sd) || pc_isridingdragon(sd))
val = 25;//Same bonus
+ else if (sd->sc.data[SC_ALL_RIDING])
+ val = sd->sc.data[SC_ALL_RIDING]->val1;
else if (pc_isridingwug(sd))
val = 15 + 5 * pc->checkskill(sd, RA_WUGRIDER);
else if (pc_ismadogear(sd)) {