|
@@ -5943,7 +5943,7 @@ void clif_status_change(struct block_list *bl, int type, int flag, int tick, int
|
|
|
if (!(status_type2relevant_bl_types(type)&bl->type)) // only send status changes that actually matter to the client
|
|
|
return;
|
|
|
|
|
|
- clif_status_change_sub(bl, bl->id, type, flag, tick, val1, val2, val3, ((sd ? (sd->status.option&OPTION_INVISIBLE ? SELF : AREA) : AREA_WOS)));
|
|
|
+ clif_status_change_sub(bl, bl->id, type, flag, tick, val1, val2, val3, ((sd ? (pc_isinvisible(sd) ? SELF : AREA) : AREA_WOS)));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -6282,7 +6282,7 @@ void clif_pvpset(struct map_session_data *sd,int pvprank,int pvpnum,int type)
|
|
|
else
|
|
|
WBUFL(buf,6) = pvprank;
|
|
|
WBUFL(buf,10) = pvpnum;
|
|
|
- if(sd->sc.option&OPTION_INVISIBLE || sd->disguise) //Causes crashes when a 'mob' with pvp info dies.
|
|
|
+ if(pc_isinvisible(sd) || sd->disguise) //Causes crashes when a 'mob' with pvp info dies.
|
|
|
clif_send(buf,packet_len(0x19a),&sd->bl,SELF);
|
|
|
else if(!type)
|
|
|
clif_send(buf,packet_len(0x19a),&sd->bl,AREA);
|
|
@@ -10109,7 +10109,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
|
|
|
|
|
|
if( map[sd->bl.m].users++ == 0 && battle_config.dynamic_mobs )
|
|
|
map_spawnmobs(sd->bl.m);
|
|
|
- if( !(sd->sc.option&OPTION_INVISIBLE) ) { // increment the number of pvp players on the map
|
|
|
+ if( !pc_isinvisible(sd) ) { // increment the number of pvp players on the map
|
|
|
map[sd->bl.m].users_pvp++;
|
|
|
}
|
|
|
sd->state.debug_remove_map = 0; // temporary state to track double remove_map's [FlavioJS]
|
|
@@ -10130,7 +10130,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
|
|
|
|
|
|
if( sd->bg_id ) clif_bg_hp(sd); // BattleGround System
|
|
|
|
|
|
- if(map[sd->bl.m].flag.pvp && !(sd->sc.option&OPTION_INVISIBLE)) {
|
|
|
+ if(map[sd->bl.m].flag.pvp && !pc_isinvisible(sd)) {
|
|
|
if(!battle_config.pk_mode) { // remove pvp stuff for pk_mode [Valaris]
|
|
|
if (!map[sd->bl.m].flag.pvp_nocalcrank)
|
|
|
sd->pvp_timer = add_timer(gettick()+200, pc_calc_pvprank_timer, sd->bl.id, 0);
|
|
@@ -11048,7 +11048,7 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
|
|
|
|
|
|
// if player ignores everyone
|
|
|
if (dstsd->state.ignoreAll && pc_get_group_level(sd) <= pc_get_group_level(dstsd)) {
|
|
|
- if (dstsd->sc.option & OPTION_INVISIBLE && pc_get_group_level(sd) < pc_get_group_level(dstsd))
|
|
|
+ if (pc_isinvisible(dstsd) && pc_get_group_level(sd) < pc_get_group_level(dstsd))
|
|
|
clif_wis_end(fd, 1); // 1: target character is not logged in
|
|
|
else
|
|
|
clif_wis_end(fd, 3); // 3: everyone ignored by target
|