From a43cd2b1c29461ce3955d6cbcf6edcb8e19bebfb Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 29 Mar 2014 17:13:44 -0300 Subject: Fixed Bug 8125 using skilleffect on a sitting character no longer causes it to be unable to move. http://hercules.ws/board/tracker/issue-8125-sit-soul-link-npc-stuck/ Signed-off-by: shennetsind --- src/map/script.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/map/script.c b/src/map/script.c index d3d98ad06..c36d26626 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -12722,6 +12722,13 @@ BUILDIN(skilleffect) { uint16 skill_lv=script_getnum(st,3); sd=script->rid2sd(st); + /* ensure we're standing because the following packet causes the client to virtually set the char to stand, + * which leaves the server thinking it still is sitting. */ + if( pc_issit(sd) ) { + pc->setstand(sd); + skill->sit(sd,0); + clif->standing(&sd->bl); + } clif->skill_nodamage(&sd->bl,&sd->bl,skill_id,skill_lv,1); return true; -- cgit v1.2.3-60-g2f50