From 09972deecb1aaf08bfa331ccc20830514913b234 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Apr 2006 15:15:22 +0000 Subject: - Small change in the pet_ai that should stop the "strange" catch-up behaviour of pets when you are much faster than them. - Corrected the unequip script of the wedding dress/tuxedo (it should be Class, not bClass) - Changebase script command will also refresh the weapon sprites (in case you changed into Wedding/Xmas class) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6317 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pet.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/pet.c') diff --git a/src/map/pet.c b/src/map/pet.c index d4db10d09..745bae5e2 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -964,8 +964,11 @@ static int pet_ai_sub_hard(struct pet_data *pd,unsigned int tick) } //Return speed to normal. - if (pd->speed != sd->petDB->speed) + if (pd->speed != sd->petDB->speed) { + if (pd->ud.walktimer != -1) + return 0; //Wait until the pet finishes walking back to master. pd->speed = sd->petDB->speed; + } if (pd->target_id) { target= map_id2bl(pd->target_id); -- cgit v1.2.3-60-g2f50