From 5bcbed556ab18af8f2f26d9cb86f8d3a5e952e40 Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Thu, 12 Dec 2019 23:04:53 +0700 Subject: [PATCH] * Fixed equip view to only send equipped item (#4450) Fixed equip view to only send equipped item Limiting only can view player's equip only at same map --- src/map/clif.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 0ab841bfa7..f7b97e503e 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -9925,6 +9925,8 @@ void clif_viewequip_ack(struct map_session_data* sd, struct map_session_data* ts { if (tsd->inventory.u.items_inventory[i].nameid <= 0 || tsd->inventory_data[i] == NULL) // Item doesn't exist continue; + if (!tsd->inventory.u.items_inventory[i].equip) + continue; if (!itemdb_isequip2(tsd->inventory_data[i])) // Is not equippable continue; // Add item info : refine, identify flag, element, etc. @@ -16698,7 +16700,9 @@ void clif_parse_ViewPlayerEquip(int fd, struct map_session_data* sd) if (!tsd) return; - if( tsd->status.show_equip || pc_has_permission(sd, PC_PERM_VIEW_EQUIPMENT) ) + if (sd->bl.m != tsd->bl.m) + return; + else if( tsd->status.show_equip || pc_has_permission(sd, PC_PERM_VIEW_EQUIPMENT) ) clif_viewequip_ack(sd, tsd); else clif_msg(sd, VIEW_EQUIP_FAIL);