From 32ebbcf88520ef77425c0b2408ba36c40c3c9aaa Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 27 Nov 2006 14:58:50 +0000 Subject: - Corrected KiriKage's range so it works correctly when used by non-players or when use weapon's range is used. - Changed service for you's flags so it affects all players on range. - Corrected the skill animation for Absorb Spirits - Cleaned up a bit the implementation of how Gravity Field blocks the caster from moving. - Mob class-changing will fail if the new class is the same as the previous one. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9325 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 97564cfd1..4772d5b60 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2315,6 +2315,9 @@ int mob_class_change (struct mob_data *md, int class_) if (mob_is_clone(md->class_)) return 0; //Clones + if (md->class_ == class_) + return 0; //Nothing to change. + hp_rate = md->status.hp*100/md->status.max_hp; md->class_ = class_; md->db = mob_db(class_); -- cgit v1.2.3-60-g2f50