summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 18:46:28 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-14 18:46:28 +0000
commit8051b6f04623a245cdd3d2f678daa0fe2c301b8e (patch)
tree3c0f5b267b509b6b38ea75725b5a9e859ca95072 /src/map/status.c
parent7d96b3325123c1ef7b8679707062a3bc266c04e3 (diff)
downloadhercules-8051b6f04623a245cdd3d2f678daa0fe2c301b8e.tar.gz
hercules-8051b6f04623a245cdd3d2f678daa0fe2c301b8e.tar.bz2
hercules-8051b6f04623a245cdd3d2f678daa0fe2c301b8e.tar.xz
hercules-8051b6f04623a245cdd3d2f678daa0fe2c301b8e.zip
- Fixed walk-delay bug when a player is attacked in disguise causing inaccurate client position
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15458 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f77b5f102..cf450c918 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1015,6 +1015,11 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
case BL_MER: mercenary_damage((TBL_MER*)target,src,hp,sp); break;
}
+ if( target->type == BL_PC && ((TBL_PC*)target)->disguise && src )
+ {// stop walking when attacked in disguise to prevent walk-delay bug
+ unit_stop_walking( target, 1 );
+ }
+
if( status->hp || (flag&8) )
{ //Still lives or has been dead before this damage.
if (walkdelay)