summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-06 16:12:44 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-06 16:12:44 +0000
commit453c3f1113bbeb874ce305ff3bd44cd1ba6ed520 (patch)
tree2bf77396efdaaa4d86869a55f107052ed1ef074b /src/map/mob.c
parentbf0ee54bf17ba1d9d808bbd6e46cfeecc8b05fd0 (diff)
downloadhercules-453c3f1113bbeb874ce305ff3bd44cd1ba6ed520.tar.gz
hercules-453c3f1113bbeb874ce305ff3bd44cd1ba6ed520.tar.bz2
hercules-453c3f1113bbeb874ce305ff3bd44cd1ba6ed520.tar.xz
hercules-453c3f1113bbeb874ce305ff3bd44cd1ba6ed520.zip
- The monsters can level up setting will not take effect when the mob's level is LESS than their db counter-part (should prevent under-leveling causing underflows and semi-immortal mobs)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7005 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-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 85e50fdf0..1fc5fdd2c 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2240,7 +2240,6 @@ 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->level = md->db->lv; //Also reset their level.
if (battle_config.override_mob_names==1)
memcpy(md->name,md->db->name,NAME_LENGTH-1);
@@ -2377,7 +2376,8 @@ int mob_summonslave(struct mob_data *md2,int *value,int amount,int skill_id)
amount+=k; //Increase final value by same amount to preserve total number to summon.
}
- if (!battle_config.monster_class_change_full_recover && (skill_id == NPC_TRANSFORMATION || skill_id == NPC_METAMORPHOSIS))
+ if (!battle_config.monster_class_change_full_recover &&
+ (skill_id == NPC_TRANSFORMATION || skill_id == NPC_METAMORPHOSIS))
hp_rate = 100*md2->status.hp/md2->status.max_hp;
for(;k<amount;k++) {