summaryrefslogtreecommitdiff
path: root/src/map/skill.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/skill.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/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 069db55df..875c06a5b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1009,6 +1009,9 @@ static int skillnotok(uint16 skill_id, struct map_session_data *sd)
if (pc_has_permission(sd, PC_PERM_SKILL_UNCONDITIONAL))
return 0; // can do any damn thing they want
+ if (map->getcell(sd->bl.m, &sd->bl, sd->bl.x, sd->bl.y, CELL_CHKNOSKILL))
+ return 1; // block usage on 'noskill' cells [Wolfie]
+
if( skill_id == AL_TELEPORT && sd->skillitem == skill_id && sd->skillitemlv > 2 )
return 0; // Teleport lv 3 bypasses this check.[Inkfish]