diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-27 14:58:50 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-27 14:58:50 +0000 |
commit | 32ebbcf88520ef77425c0b2408ba36c40c3c9aaa (patch) | |
tree | 57ed8c019a56b4ab7d2b531007856fe40e876267 /src/map/mob.c | |
parent | e5516cf57ab6852557eac30f3c056b90dfe59b1d (diff) | |
download | hercules-32ebbcf88520ef77425c0b2408ba36c40c3c9aaa.tar.gz hercules-32ebbcf88520ef77425c0b2408ba36c40c3c9aaa.tar.bz2 hercules-32ebbcf88520ef77425c0b2408ba36c40c3c9aaa.tar.xz hercules-32ebbcf88520ef77425c0b2408ba36c40c3c9aaa.zip |
- 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
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 3 |
1 files changed, 3 insertions, 0 deletions
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_); |