summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorRidley <ridley8819@gmail.com>2017-02-24 16:41:41 +0100
committerGitHub <noreply@github.com>2017-02-24 16:41:41 +0100
commitabb3bc63cb48c7d8bd378bbe3e1c68da0f18d613 (patch)
treee49d2091477b2c4ccb40f8a0231cf4991e08548c /src/map/clif.c
parent820070147a4f6ec464b99c227fae7929fa12c5e4 (diff)
parent9ee88129d0f71a8f8cf6eebf79af0a126d3b11a7 (diff)
downloadhercules-abb3bc63cb48c7d8bd378bbe3e1c68da0f18d613.tar.gz
hercules-abb3bc63cb48c7d8bd378bbe3e1c68da0f18d613.tar.bz2
hercules-abb3bc63cb48c7d8bd378bbe3e1c68da0f18d613.tar.xz
hercules-abb3bc63cb48c7d8bd378bbe3e1c68da0f18d613.zip
Merge pull request #1585 from guilherme-gm/disguise-fix
Fixes disguise position de-synchronization
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 2791755a3..674fbba1d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1087,7 +1087,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
@@ -1233,7 +1237,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
@@ -1328,7 +1336,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