summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-24 06:38:53 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-24 06:38:53 -0600
commitf3a49f36d367b7b67152b0e67526768881dd47fd (patch)
tree9c7b42692ca49d6e06eec1e3ffae982110e6bed6 /src/map/clif.c
parente6db3f5fc85fcf73875d7384b7700eb48cf92c47 (diff)
downloadtmwa-f3a49f36d367b7b67152b0e67526768881dd47fd.tar.gz
tmwa-f3a49f36d367b7b67152b0e67526768881dd47fd.tar.bz2
tmwa-f3a49f36d367b7b67152b0e67526768881dd47fd.tar.xz
tmwa-f3a49f36d367b7b67152b0e67526768881dd47fd.zip
Don't send looks packets when invisible
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c68841d..25ce1d4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2322,6 +2322,9 @@ int clif_changelook_towards(struct block_list *bl,int type,int val, struct map_s
if(sd && sd->disguise > 23 && sd->disguise < 4001) // mob disguises [Valaris]
return 0;
+ if (sd && sd->status.option & OPTION_INVISIBILITY)
+ return 0;
+
if(sd && (type == LOOK_WEAPON || type == LOOK_SHIELD || type >= LOOK_SHOES)) {
WBUFW(buf,0)=0x1d7;
WBUFL(buf,2)=bl->id;