diff options
author | EPuncker <gm.perflex@gmail.com> | 2014-09-20 23:59:59 -0300 |
---|---|---|
committer | EPuncker <gm.perflex@gmail.com> | 2014-09-20 23:59:59 -0300 |
commit | 82037b89b33c3fa2a5cfaf33038fbf9ebddea17f (patch) | |
tree | 6ac06fffc8149ae2415364c824ede304371b731e /src/map/skill.c | |
parent | db896b4ec75d0bd32a699d2b850e0c0bc66d6506 (diff) | |
download | hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.gz hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.bz2 hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.tar.xz hercules-82037b89b33c3fa2a5cfaf33038fbf9ebddea17f.zip |
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 db1296260..4ab0ca1c7 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 |