summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-10-06 21:23:29 +0100
committerAsheraf <acheraf1998@gmail.com>2018-10-06 21:25:12 +0100
commitcaa983de173a89b673e7455c6f69fea38062cc12 (patch)
tree2c83b34df09f73777107e473b3d8462457cd46c1
parent852c13305f67948531bd0277eb1922dbd02b1f26 (diff)
downloadhercules-caa983de173a89b673e7455c6f69fea38062cc12.tar.gz
hercules-caa983de173a89b673e7455c6f69fea38062cc12.tar.bz2
hercules-caa983de173a89b673e7455c6f69fea38062cc12.tar.xz
hercules-caa983de173a89b673e7455c6f69fea38062cc12.zip
update at_bodystyle allowed jobs check
-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 2538f797c..9211169ed 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;
}