Browse Source

Fixed atcommand jail (#6678)

Fixes #6677

Thanks to @gen1x8
Lemongrass3110 3 years ago
parent
commit
0663e7b43d
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/map/unit.cpp

+ 0 - 3
src/map/unit.cpp

@@ -3052,9 +3052,6 @@ int unit_remove_map_(struct block_list *bl, clr_type clrtype, const char* file,
 	ud->attackabletime = ud->canmove_tick /*= ud->canact_tick*/ = gettick();
 	ud->attackabletime = ud->canmove_tick /*= ud->canact_tick*/ = gettick();
 
 
 	if(sc && sc->count ) { // map-change/warp dispells.
 	if(sc && sc->count ) { // map-change/warp dispells.
-		if (sc->cant.warp)
-			return 0;
-
 		status_db.removeByStatusFlag(bl, { SCF_REMOVEONCHANGEMAP });
 		status_db.removeByStatusFlag(bl, { SCF_REMOVEONCHANGEMAP });
 
 
 		// Ensure the bl is a PC; if so, we'll handle the removal of cloaking and cloaking exceed later
 		// Ensure the bl is a PC; if so, we'll handle the removal of cloaking and cloaking exceed later