summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-25 03:22:55 +0200
committerGitHub <noreply@github.com>2018-07-25 03:22:55 +0200
commited988911d28ddfa64e1340389a818e94785f2cba (patch)
treec55c3c678469fe724c1e747f7670d75d11ff0539 /src/map/atcommand.c
parent504ad2ca7d6ef4923093f74ac2afd5fc1bd39fd1 (diff)
parentc64b3517fb085e34f6c3c2ab83a3290b1726fc95 (diff)
downloadhercules-ed988911d28ddfa64e1340389a818e94785f2cba.tar.gz
hercules-ed988911d28ddfa64e1340389a818e94785f2cba.tar.bz2
hercules-ed988911d28ddfa64e1340389a818e94785f2cba.tar.xz
hercules-ed988911d28ddfa64e1340389a818e94785f2cba.zip
Merge pull request #2136 from Asheraf/petevofix
Pet evolution bug fixes
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 79bd92213..3ec709b57 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4222,6 +4222,8 @@ ACMD(repairall)
count = 0;
for (i = 0; i < MAX_INVENTORY; i++) {
+ if (sd->status.inventory[i].card[0] == CARD0_PET)
+ continue;
if (sd->status.inventory[i].nameid && (sd->status.inventory[i].attribute & ATTR_BROKEN) != 0) {
sd->status.inventory[i].attribute |= ATTR_BROKEN;
sd->status.inventory[i].attribute ^= ATTR_BROKEN;