diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-11-03 20:05:53 +0100 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-11-03 20:05:53 +0100 |
commit | ea85ad9514c6d1e64457c215294a7090831d971b (patch) | |
tree | e75d66f7e068d5d4df567182d0739a7a03307fcc /src/map/skill.c | |
parent | 715af9d93adf4e07f11ff09a6a1b55d49d32849d (diff) | |
parent | 82037b89b33c3fa2a5cfaf33038fbf9ebddea17f (diff) | |
download | hercules-ea85ad9514c6d1e64457c215294a7090831d971b.tar.gz hercules-ea85ad9514c6d1e64457c215294a7090831d971b.tar.bz2 hercules-ea85ad9514c6d1e64457c215294a7090831d971b.tar.xz hercules-ea85ad9514c6d1e64457c215294a7090831d971b.zip |
Merge pull request #363 from EPuncker/master
Added 4 new permissions
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a51dec868..d3c00a75b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -453,6 +453,9 @@ int skillnotok (uint16 skill_id, struct map_session_data *sd) if (idx == 0) return 1; // invalid skill id + if( pc_has_permission(sd, PC_PERM_DISABLE_SKILL_USAGE) ) + return 1; + if (pc_has_permission(sd, PC_PERM_SKILL_UNCONDITIONAL)) return 0; // can do any damn thing they want |