diff options
author | Haru <haru@dotalux.com> | 2018-06-02 16:19:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 16:19:59 +0200 |
commit | b8cdb8e191f17cb0c8798e0379be9d68c72d6368 (patch) | |
tree | d177ea2eccf2207423c8deae85021ef7e5949512 /src/map/status.c | |
parent | e6596534654e7ca395c34db5a8d589ebbcaa0a7d (diff) | |
parent | 90be2a7937e7552a72d1e7eb632e6bc2d01443ef (diff) | |
download | hercules-b8cdb8e191f17cb0c8798e0379be9d68c72d6368.tar.gz hercules-b8cdb8e191f17cb0c8798e0379be9d68c72d6368.tar.bz2 hercules-b8cdb8e191f17cb0c8798e0379be9d68c72d6368.tar.xz hercules-b8cdb8e191f17cb0c8798e0379be9d68c72d6368.zip |
Merge pull request #842 from AnnieRuru/request_6
Add new *pcblock script command
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 7d3734903..45a8f86bf 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1761,6 +1761,9 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin if (src != NULL && src->type != BL_PC && status->isdead(src)) return 0; + if (sd != NULL && sd->block_action.skill && skill_id) // *pcblock script command + return 0; + if (!skill_id) { //Normal attack checks. if (!(st->mode&MD_CANATTACK)) return 0; //This mode is only needed for melee attacking. |