diff options
author | AnnieRuru <jeankof@ymail.com> | 2018-05-04 15:11:44 +0800 |
---|---|---|
committer | AnnieRuru <jeankof@ymail.com> | 2018-05-04 15:11:44 +0800 |
commit | 90be2a7937e7552a72d1e7eb632e6bc2d01443ef (patch) | |
tree | a620df93dbac0e1e1a210cce677c1d7046ad51dd /src/map/status.c | |
parent | 0622261073b6f4f0160cb0df150d3e07483d9b1b (diff) | |
download | hercules-90be2a7937e7552a72d1e7eb632e6bc2d01443ef.tar.gz hercules-90be2a7937e7552a72d1e7eb632e6bc2d01443ef.tar.bz2 hercules-90be2a7937e7552a72d1e7eb632e6bc2d01443ef.tar.xz hercules-90be2a7937e7552a72d1e7eb632e6bc2d01443ef.zip |
Add setpcblock & checkpcblock script commands
thanks to @MishimaHaruna for the updated syntax
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 972d1eca9..030a45793 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. |