Skip to content

Commit 2722c13

Browse files
committed
Fixed issue where disguised char while invisible can't be seen via user with intravision.
Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
1 parent c1fa550 commit 2722c13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/map/clif.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5019,7 +5019,12 @@ static void clif_getareachar_unit(struct map_session_data *sd, struct block_list
50195019
case BL_PC:
50205020
{
50215021
struct map_session_data *tsd = BL_UCAST(BL_PC, bl);
5022+
struct status_change *t_sc = status->get_sc(bl);
50225023
clif->getareachar_pc(sd, tsd);
5024+
if (t_sc != NULL && (t_sc->option & (OPTION_HIDE | OPTION_CLOAK | OPTION_CHASEWALK)) != 0
5025+
&& clif->isdisguised(bl) && (sd->sc.data[SC_CLAIRVOYANCE] != NULL || sd->special_state.intravision != 0)) {
5026+
clif->refreshlook(&sd->bl, bl->id, LOOK_BASE, tsd->status.class, SELF);
5027+
}
50235028
if (tsd->state.size == SZ_BIG) // tiny/big players [Valaris]
50245029
clif->specialeffect_single(bl,423,sd->fd);
50255030
else if (tsd->state.size == SZ_MEDIUM)

0 commit comments

Comments
 (0)