summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-02 20:59:09 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-02 20:59:09 +0000
commit24bc674295e1dc2ebbfa4fae3f68a70311c98594 (patch)
tree54be2c93223bdea75c0bf5876968493a76fd0d44 /src/map/mob.c
parentd2f88f0450a23f8b9cd9579451059acb08f14f52 (diff)
downloadhercules-24bc674295e1dc2ebbfa4fae3f68a70311c98594.tar.gz
hercules-24bc674295e1dc2ebbfa4fae3f68a70311c98594.tar.bz2
hercules-24bc674295e1dc2ebbfa4fae3f68a70311c98594.tar.xz
hercules-24bc674295e1dc2ebbfa4fae3f68a70311c98594.zip
- Resetting skills will now automatically remove peco, falcon, cart and homunculus (vaporize).
- Fixed random mob picking choosing clones. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9780 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index f32acc85f..4abd1dd58 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -257,6 +257,7 @@ int mob_get_random_id(int type, int flag, int lv) {
class_ = rand() % MAX_MOB_DB;
mob = mob_db(class_);
} while ((mob == mob_dummy ||
+ mob_is_clone(class_) ||
(flag&1 && mob->summonper[type] <= rand() % 1000000) ||
(flag&2 && lv < mob->lv) ||
(flag&4 && mob->status.mode&MD_BOSS) ||