diff options
author | hemagx <hemagx2@gmail.com> | 2015-12-12 12:52:28 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-17 04:15:53 +0100 |
commit | bb407e4e657c80115af8a8f5717e1f6f6dc61043 (patch) | |
tree | 63ae925756971fb7a6a840d40788c682714b48a4 /src/map/status.c | |
parent | 478776d998e0fb48d87cd4c49229a1cf1b8cc203 (diff) | |
download | hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.gz hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.bz2 hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.tar.xz hercules-bb407e4e657c80115af8a8f5717e1f6f6dc61043.zip |
Change all chat mute checks to use pc->can_talk instead of direct check.
Put new macro pc_ismuted and change all other kind of mutes to use it
Closes #937 as merged
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 926ebaf21..f4fd04467 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1815,7 +1815,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, uin (sc->data[SC_VOLCANO] && skill_id == WZ_ICEWALL) || (sc->data[SC_ROKISWEIL] && skill_id != BD_ADAPTATION) || (sc->data[SC_HERMODE] && skill->get_inf(skill_id) & INF_SUPPORT_SKILL) || - (sc->data[SC_NOCHAT] && sc->data[SC_NOCHAT]->val1&MANNER_NOSKILL) + pc_ismuted(sc, MANNER_NOSKILL) ) return 0; |