summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-30 01:50:18 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-30 01:50:18 +0200
commit468c81a5367c444e2e678148d556df94eaa623af (patch)
treea2599c315e5db332138b78007a768962d0e408e9 /src/map/status.c
parent8ef065eada5f135a8837963b878f381e3c597d8a (diff)
downloadhercules-468c81a5367c444e2e678148d556df94eaa623af.tar.gz
hercules-468c81a5367c444e2e678148d556df94eaa623af.tar.bz2
hercules-468c81a5367c444e2e678148d556df94eaa623af.tar.xz
hercules-468c81a5367c444e2e678148d556df94eaa623af.zip
Move misplaced SC_ALL_RIDING check in status_check_skilluse()
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f7feda7d8..1e92bbd6a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1737,6 +1737,7 @@ static int status_check_skilluse(struct block_list *src, struct block_list *targ
(sc->data[SC_MARIONETTE] && skill_id == CG_MARIONETTE) || //Cannot use marionette if you are being buffed by another
(sc->data[SC_STASIS] && skill->block_check(src, SC_STASIS, skill_id)) ||
(sc->data[SC_KG_KAGEHUMI] && skill->block_check(src, SC_KG_KAGEHUMI, skill_id))
+ || sc->data[SC_ALL_RIDING] != NULL // New mounts can't attack nor use skills in the client; this check makes it cheat-safe. [Ind]
))
return 0;
@@ -1785,8 +1786,6 @@ static int status_check_skilluse(struct block_list *src, struct block_list *targ
} else if ( skill_id != ST_CHASEWALK )
return 0;
}
- if( sc->data[SC_ALL_RIDING] )
- return 0;//New mounts can't attack nor use skills in the client; this check makes it cheat-safe [Ind]
}
if (target == NULL || target == src) //No further checking needed.