- Fixed the md->class_ variable not being updated when a mob's class is changed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8470 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
dbedc092e8
commit
ac3aeb0574
@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||
|
||||
2006/08/24
|
||||
* Fixed the md->class_ variable not being updated when a mob's class is
|
||||
changed. [Skotlex]
|
||||
* Added setting clear_skills_on_warp to specify when a character's
|
||||
land-based skills are deleted when the caster changes maps. Defaults to all
|
||||
types. [Skotlex]
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user