From 9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7 Mon Sep 17 00:00:00 2001 From: KirieZ Date: Tue, 21 Feb 2017 12:44:43 -0300 Subject: [PATCH] Fixes disguise position de-synchronization (Fixes #1078) Thanks @Lemongrass3110 --- src/map/clif.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/map/clif.c b/src/map/clif.c index c48241898cd..3353247fe5d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1085,7 +1085,11 @@ void clif_set_unit_idle(struct block_list* bl, struct map_session_data *tsd, enu if (clif->isdisguised(bl)) { #if PACKETVER >= 20091103 p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE +#if PACKETVER >= 20131223 + p.AID = -bl->id; +#else p.GID = -bl->id; +#endif #else p.GID = -bl->id; #endif @@ -1228,7 +1232,11 @@ void clif_spawn_unit(struct block_list* bl, enum send_target target) { clif->send(&p,sizeof(p),bl,target); #if PACKETVER >= 20091103 p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE +#if PACKETVER >= 20131223 + p.AID = -bl->id; +#else p.GID = -bl->id; +#endif #else p.GID = -bl->id; #endif @@ -1320,7 +1328,11 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, if (clif->isdisguised(bl)) { #if PACKETVER >= 20091103 p.objecttype = pc->db_checkid(status->get_viewdata(bl)->class) ? 0x0 : 0x5; //PC_TYPE : NPC_MOB_TYPE +#if PACKETVER >= 20131223 + p.AID = -bl->id; +#else p.GID = -bl->id; +#endif #else p.GID = -bl->id; #endif