- Fixed walk-delay bug when a player is attacked in disguise causing inaccurate client position
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15458 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
a1c87268c7
commit
65b7f95e31
@ -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;
|
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) )
|
if( status->hp || (flag&8) )
|
||||||
{ //Still lives or has been dead before this damage.
|
{ //Still lives or has been dead before this damage.
|
||||||
if (walkdelay)
|
if (walkdelay)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user