summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-07-17 19:57:51 +0100
committerAsheraf <acheraf1998@gmail.com>2018-07-24 14:21:12 +0100
commitc64b3517fb085e34f6c3c2ab83a3290b1726fc95 (patch)
treec55c3c678469fe724c1e747f7670d75d11ff0539 /src/map/pet.c
parent0ad1e08ee15ac0112cad6d94e67584a5ce571c53 (diff)
downloadhercules-c64b3517fb085e34f6c3c2ab83a3290b1726fc95.tar.gz
hercules-c64b3517fb085e34f6c3c2ab83a3290b1726fc95.tar.bz2
hercules-c64b3517fb085e34f6c3c2ab83a3290b1726fc95.tar.xz
hercules-c64b3517fb085e34f6c3c2ab83a3290b1726fc95.zip
add support for PACKETVER >= 20180704 pet evolution
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 5d0e5b9e3..d1d8a5a33 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -348,7 +348,10 @@ static int pet_return_egg(struct map_session_data *sd, struct pet_data *pd)
sd->status.inventory[i].attribute &= ~ATTR_BROKEN;
sd->status.inventory[i].bound = IBT_NONE;
}
-
+#if PACKETVER >= 20180704
+ clif->inventorylist(sd);
+ clif->send_petdata(sd, pd, 6, 0);
+#endif
pd->pet.incubate = 1;
unit->free(&pd->bl,CLR_OUTSIGHT);
@@ -462,6 +465,9 @@ static int pet_birth_process(struct map_session_data *sd, struct s_pet *petinfo)
clif->spawn(&sd->pd->bl);
clif->send_petdata(sd,sd->pd, 0,0);
clif->send_petdata(sd,sd->pd, 5,battle_config.pet_hair_style);
+#if PACKETVER >= 20180704
+ clif->send_petdata(sd, sd->pd, 6, 1);
+#endif
clif->send_petdata(NULL, sd->pd, 3, sd->pd->vd.head_bottom);
clif->send_petstatus(sd);
}