Follow up d84d6ba1e50852844303cfb11470de63cfd92a27
* Added restriction check for normal warp portal. Signed-off-by: Cydh Ramdh <cydh@pservero.com>
This commit is contained in:
parent
47276e94a6
commit
f7e4001f65
@ -975,6 +975,8 @@ int npc_touch_areanpc(struct map_session_data* sd, int16 m, int16 x, int16 y)
|
||||
case NPCTYPE_WARP:
|
||||
if (pc_ishiding(sd) || (sd->sc.count && sd->sc.data[SC_CAMOUFLAGE]) || pc_isdead(sd))
|
||||
break; // hidden or dead chars cannot use warps
|
||||
if (!pc_job_can_entermap((enum e_job)sd->status.class_, map_mapindex2mapid(map[m].npc[i]->u.warp.mapindex), sd->group_level))
|
||||
break;
|
||||
if(sd->count_rewarp > 10){
|
||||
ShowWarning("Prevented infinite warp loop for player (%d:%d). Please fix NPC: '%s', path: '%s'\n", sd->status.account_id, sd->status.char_id, map[m].npc[i]->exname, map[m].npc[i]->path);
|
||||
sd->count_rewarp=0;
|
||||
|
@ -13139,7 +13139,7 @@ static int skill_unit_onplace(struct skill_unit *unit, struct block_list *bl, un
|
||||
if( --count <= 0 )
|
||||
skill_delunitgroup(sg);
|
||||
|
||||
if ( map_mapindex2mapid(sg->val3) == sd->bl.m && x == sd->bl.x && y == sd->bl.y )
|
||||
if ( map_mapindex2mapid(m) == sd->bl.m && x == sd->bl.x && y == sd->bl.y )
|
||||
working = 1;/* we break it because officials break it, lovely stuff. */
|
||||
|
||||
sg->val1 = (count<<16)|working;
|
||||
|
Loading…
x
Reference in New Issue
Block a user