summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2018-05-04 15:11:44 +0800
committerAnnieRuru <jeankof@ymail.com>2018-05-04 15:11:44 +0800
commit90be2a7937e7552a72d1e7eb632e6bc2d01443ef (patch)
treea620df93dbac0e1e1a210cce677c1d7046ad51dd /src/map/atcommand.c
parent0622261073b6f4f0160cb0df150d3e07483d9b1b (diff)
downloadhercules-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/atcommand.c')
-rw-r--r--src/map/atcommand.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9deed0098..c7a1446e2 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7522,11 +7522,11 @@ ACMD(sizeguild)
*------------------------------------------*/
ACMD(monsterignore)
{
- if (!sd->state.monster_ignore) {
- sd->state.monster_ignore = 1;
+ if (!sd->block_action.immune) {
+ sd->block_action.immune = 1;
clif->message(sd->fd, msg_fd(fd,1305)); // You are now immune to attacks.
} else {
- sd->state.monster_ignore = 0;
+ sd->block_action.immune = 0;
clif->message(sd->fd, msg_fd(fd,1306)); // Returned to normal state.
}
@@ -10090,6 +10090,8 @@ bool atcommand_exec(const int fd, struct map_session_data *sd, const char *messa
return false;
}
}
+ if (sd->block_action.commands) // *pcblock script command
+ return false;
if (*message == atcommand->char_symbol)
is_atcommand = false;