summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-04 13:59:42 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-04 13:59:42 +0000
commit5edc20529759c12add3da5c3ed0a1cfe335de6b8 (patch)
treeb56a90c9e21301b4117e53cda82c9362aeaab761 /src/map/status.c
parent12966eebf5750b2dc0a4394204aaf6d2b1d554db (diff)
downloadhercules-5edc20529759c12add3da5c3ed0a1cfe335de6b8.tar.gz
hercules-5edc20529759c12add3da5c3ed0a1cfe335de6b8.tar.bz2
hercules-5edc20529759c12add3da5c3ed0a1cfe335de6b8.tar.xz
hercules-5edc20529759c12add3da5c3ed0a1cfe335de6b8.zip
- Fixed the txt->sql converter not escaping character names before saving them.
- Fixed a pet's level not resetting to their db level when you enable pet leveling and later on decide to turn it off. - Fixed a bad initialization in pc_setnewpc - Fixed restricted equipment not updating your view info after they are unequipped. - Removed a bunch of extra text/checks when ignoring characters (/ex) when Aegis does none of these checks. /inall now wipes your ignore list (it does this on Aegis, too). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9400 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 1af25239a..1cd81a180 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1474,8 +1474,11 @@ int status_calc_pet(struct pet_data *pd, int first)
if (!first) //Not done the first time because the pet is not visible yet
clif_send_petstatus(sd);
}
- } else if (first)
+ } else if (first) {
status_calc_misc(&pd->bl, &pd->status, pd->db->lv);
+ if (!battle_config.pet_lv_rate && pd->pet.level != pd->db->lv)
+ pd->pet.level = pd->db->lv;
+ }
//Support rate modifier (1000 = 100%)
pd->rate_fix = 1000*(pd->pet.intimate - battle_config.pet_support_min_friendly)/(1000- battle_config.pet_support_min_friendly) +500;