Fixed waitingroom npcs from being displayed properly against maya p exploit protection

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15395 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-01-04 23:30:22 +00:00
parent 6f7147c6f4
commit b241b18693

View File

@ -1221,7 +1221,7 @@ int clif_spawn(struct block_list *bl)
/** /**
* Hide NPC from maya puprle card. * Hide NPC from maya puprle card.
**/ **/
if(bl->type == BL_NPC && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE)) if(bl->type == BL_NPC && !((TBL_NPC*)bl)->chat_id && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE))
return 0; return 0;
len = clif_set_unit_idle(bl, buf,true); len = clif_set_unit_idle(bl, buf,true);
@ -1482,7 +1482,7 @@ void clif_move(struct unit_data *ud)
/** /**
* Hide NPC from maya puprle card. * Hide NPC from maya puprle card.
**/ **/
if(bl->type == BL_NPC && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE)) if(bl->type == BL_NPC && !((TBL_NPC*)bl)->chat_id && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE))
return; return;
if (ud->state.speed_changed) { if (ud->state.speed_changed) {
@ -3811,7 +3811,7 @@ void clif_getareachar_unit(struct map_session_data* sd,struct block_list *bl)
/** /**
* Hide NPC from maya puprle card. * Hide NPC from maya puprle card.
**/ **/
if(bl->type == BL_NPC && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE)) if(bl->type == BL_NPC && !((TBL_NPC*)bl)->chat_id && (((TBL_NPC*)bl)->sc.option&OPTION_INVISIBLE))
return; return;
ud = unit_bl2ud(bl); ud = unit_bl2ud(bl);