summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 18:44:07 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 18:44:07 +0000
commite44eb201eb39b0d9986273c97715060ac668a7d3 (patch)
tree39ca2386cdfd42337c0af8f06f65a1f819aefd2d /src/map/mob.c
parent59e595f4fb20c48b44f1e254a3f665d21ebcc945 (diff)
downloadhercules-e44eb201eb39b0d9986273c97715060ac668a7d3.tar.gz
hercules-e44eb201eb39b0d9986273c97715060ac668a7d3.tar.bz2
hercules-e44eb201eb39b0d9986273c97715060ac668a7d3.tar.xz
hercules-e44eb201eb39b0d9986273c97715060ac668a7d3.zip
- Moved the morph restrictions from skill_additional_effect to mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or treasure boxes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8724 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 67c44574d..ca12ba0eb 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2275,6 +2275,16 @@ int mob_class_change (struct mob_data *md, int class_)
if (md->bl.prev == NULL)
return 0;
+ //Disable class changing for some targets...
+ if (md->guardian_data)
+ return 0; //Guardians/Emperium
+
+ if (md->class_ >= 1324 && md->class_ <= 1363)
+ return 0; //Treasure Boxes
+
+ if (mob_is_clone(md->class_))
+ return 0; //Clones
+
hp_rate = md->status.hp*100/md->status.max_hp;
md->db = mob_db(class_);
if (battle_config.override_mob_names==1)