diff options
author | Haru <haru@dotalux.com> | 2020-05-04 14:25:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 14:25:04 +0200 |
commit | a126526feea0acbbc4cc8c591b8759093b144dd9 (patch) | |
tree | beff524d797ea48c037f165d457f3e96746f95f5 /src/map/map.c | |
parent | 43b9a6987c5fc22c15c817a7c364393b49fb5f36 (diff) | |
parent | cd593de68b02d77766fcb3b7b2a869096ceb7183 (diff) | |
download | hercules-a126526feea0acbbc4cc8c591b8759093b144dd9.tar.gz hercules-a126526feea0acbbc4cc8c591b8759093b144dd9.tar.bz2 hercules-a126526feea0acbbc4cc8c591b8759093b144dd9.tar.xz hercules-a126526feea0acbbc4cc8c591b8759093b144dd9.zip |
Merge pull request #2188 from bWolfie/cell_noskill
Adds 'cell_noskill' which blocks skill usage.
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 40e66e4df..f66f40dfc 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3077,6 +3077,8 @@ static int map_getcellp(struct map_data *m, const struct block_list *bl, int16 x return (cell.icewall); case CELL_CHKNOICEWALL: return (cell.noicewall); + case CELL_CHKNOSKILL: + return (cell.noskill); // special checks case CELL_CHKPASS: @@ -3141,6 +3143,7 @@ static void map_setcell(int16 m, int16 x, int16 y, cell_t cell, bool flag) case CELL_NOCHAT: map->list[m].cell[j].nochat = flag; break; case CELL_ICEWALL: map->list[m].cell[j].icewall = flag; break; case CELL_NOICEWALL: map->list[m].cell[j].noicewall = flag; break; + case CELL_NOSKILL: map->list[m].cell[j].noskill = flag; break; default: ShowWarning("map_setcell: invalid cell type '%d'\n", (int)cell); |