summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorEyesOfAHawk <blackoutro2006@gmail.com>2019-02-28 03:30:54 +1300
committerEyesOfAHawk <blackoutro2006@gmail.com>2019-02-28 03:30:54 +1300
commitf70a887b188dbd88c45c9992cd18a33b6886005f (patch)
tree060edb33fa2a4fb48e76bc21eafd0e514d99df36 /src/map/map.c
parent1ac84c2dd856087a4a72fec95b3322137187637a (diff)
downloadhercules-f70a887b188dbd88c45c9992cd18a33b6886005f.tar.gz
hercules-f70a887b188dbd88c45c9992cd18a33b6886005f.tar.bz2
hercules-f70a887b188dbd88c45c9992cd18a33b6886005f.tar.xz
hercules-f70a887b188dbd88c45c9992cd18a33b6886005f.zip
Adds 'cell_noskill' which blocks skill usage.
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 6212493c8..440634467 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3058,6 +3058,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:
@@ -3122,6 +3124,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);