Fixed atcommand jail (#6678)

Fixes #6677

Thanks to @gen1x8
This commit is contained in:
Lemongrass3110 2022-03-14 20:35:45 +01:00 committed by GitHub
parent a032cd1f74
commit 0663e7b43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
if(sc && sc->count ) { // map-change/warp dispells.
if (sc->cant.warp)
return 0;
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