summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-10-22 02:30:24 +0200
committerGitHub <noreply@github.com>2018-10-22 02:30:24 +0200
commitd6b400c60fbb5899963a92e3ff115ec1e6cc1b38 (patch)
tree25c990afb10ad0b1228f696f8fa0b1960b0c51c9 /src/map/atcommand.c
parent93b631f91de8d579b06d9cba6e3c67f7178cd86d (diff)
parentcaa983de173a89b673e7455c6f69fea38062cc12 (diff)
downloadhercules-d6b400c60fbb5899963a92e3ff115ec1e6cc1b38.tar.gz
hercules-d6b400c60fbb5899963a92e3ff115ec1e6cc1b38.tar.bz2
hercules-d6b400c60fbb5899963a92e3ff115ec1e6cc1b38.tar.xz
hercules-d6b400c60fbb5899963a92e3ff115ec1e6cc1b38.zip
Merge pull request #2264 from Asheraf/pr5
update at_bodystyle allowed jobs check
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a7dc5dd95..809a740d7 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1776,18 +1776,7 @@ ACMD(bodystyle)
memset(atcmd_output, '\0', sizeof(atcmd_output));
- if ((sd->job & MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS
- && (sd->job & MAPID_THIRDMASK) != MAPID_GENETIC
- && (sd->job & MAPID_THIRDMASK) != MAPID_MECHANIC
- && (sd->job & MAPID_THIRDMASK) != MAPID_ROYAL_GUARD
- && (sd->job & MAPID_THIRDMASK) != MAPID_ARCH_BISHOP
- && (sd->job & MAPID_THIRDMASK) != MAPID_RANGER
- && (sd->job & MAPID_THIRDMASK) != MAPID_WARLOCK
- && (sd->job & MAPID_THIRDMASK) != MAPID_SHADOW_CHASER
- && (sd->job & MAPID_THIRDMASK) != MAPID_MINSTRELWANDERER
- && (sd->job & MAPID_THIRDMASK) != MAPID_SORCERER
- && (sd->job & MAPID_THIRDMASK) != MAPID_SURA
- ) {
+ if (!pc->has_second_costume(sd)) {
clif->message(fd, msg_fd(fd, 35)); // This job has no alternate body styles.
return false;
}