summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2024-08-06 23:11:17 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-30 21:05:24 +0200
commit2af706705bf6dd3d147eb3b7f84fba3d3713a498 (patch)
tree4f186195d31042c05e8978ad864b40f03edde85d /src/map/clif.cpp
parent587fc350d7ab825c2cb82bdb216694893d3a2413 (diff)
downloadtmwa-2af706705bf6dd3d147eb3b7f84fba3d3713a498.tar.gz
tmwa-2af706705bf6dd3d147eb3b7f84fba3d3713a498.tar.bz2
tmwa-2af706705bf6dd3d147eb3b7f84fba3d3713a498.tar.xz
tmwa-2af706705bf6dd3d147eb3b7f84fba3d3713a498.zip
sc_cooldown_sg, sc_slowmove, sc_cantmove
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 6381c09..4d36f17 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3865,6 +3865,12 @@ RecvResult clif_parse_WalkToXY(Session *s, dumb_ptr<map_session_data> sd)
if (bool(sd->opt1) && sd->opt1 != (Opt1::_stone6))
return rv;
+ if (sd->sc_data[StatusChange::SC_CANTMOVE].timer)
+ {
+ pc_stop_walking(sd, 1); // this is a little hack since client is a bit bugged and still moves several tiles and then gets reset to the position where status was triggered with this it only moves 1 pixel or so and gets set back
+ return rv;
+ }
+
if (sd->invincible_timer)
pc_delinvincibletimer(sd);