summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 14:59:23 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 14:59:23 +0000
commitcb21fbb0fe268d098a74469895d8162f1c3c8c2b (patch)
tree396e9f3413615a3193700dae915499bdda2223fe /src
parent84f83d1034146b36bb3855ef654548f0802093a3 (diff)
downloadhercules-cb21fbb0fe268d098a74469895d8162f1c3c8c2b.tar.gz
hercules-cb21fbb0fe268d098a74469895d8162f1c3c8c2b.tar.bz2
hercules-cb21fbb0fe268d098a74469895d8162f1c3c8c2b.tar.xz
hercules-cb21fbb0fe268d098a74469895d8162f1c3c8c2b.zip
- Fixed the md->class_ variable not being updated when a mob's class is changed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8470 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 19f258b3f..d22d86f5f 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2275,7 +2275,7 @@ int mob_class_change (struct mob_data *md, int class_)
hp_rate = md->status.hp*100/md->status.max_hp;
md->db = mob_db(class_);
-
+ md->class_ = class_;
if (battle_config.override_mob_names==1)
memcpy(md->name,md->db->name,NAME_LENGTH-1);
else
@@ -2287,7 +2287,7 @@ int mob_class_change (struct mob_data *md, int class_)
status_set_viewdata(&md->bl, class_);
clif_mob_class_change(md,class_);
status_calc_mob(md, 3);
-
+
if (battle_config.monster_class_change_full_recover) {
memset(md->dmglog, 0, sizeof(md->dmglog));
md->tdmg = 0;