diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-01 21:35:44 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-01 21:35:44 +0000 |
commit | fb5093127c9fcedff387b41578b38f401de6503a (patch) | |
tree | 7182691f4d09319e8ec5d4a67d491e7cbf877ae9 /src/map/skill.c | |
parent | ee1d75fdda4f4cd4c9c175f63437eeb693774334 (diff) | |
download | hercules-fb5093127c9fcedff387b41578b38f401de6503a.tar.gz hercules-fb5093127c9fcedff387b41578b38f401de6503a.tar.bz2 hercules-fb5093127c9fcedff387b41578b38f401de6503a.tar.xz hercules-fb5093127c9fcedff387b41578b38f401de6503a.zip |
- NPC_TRANSFORMATION/NPC_METAMORPHOSIS will now preserve the original mob without removing it when the skill level is greater than one.
- Added SC_DANCING declaration in the Status Change tables to signal it modifies Walk speed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6918 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 9fea5bbee..0f849d5ea 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4875,16 +4875,10 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in case NPC_TRANSFORMATION: case NPC_METAMORPHOSIS: if(md && md->skillidx >= 0) { - if (skilllv > 1) - { //Multiply skilllv times, the original instance must be silently killed. [Skotlex] - mob_summonslave(md,md->db->skill[md->skillidx].val,skilllv,skillid); - unit_remove_map(src,1); - } - else - { //Transform into another class. - int class_ = mob_random_class (md->db->skill[md->skillidx].val,0); - if (class_) mob_class_change(md, class_); - } + int class_ = mob_random_class (md->db->skill[md->skillidx].val,0); + if (skilllv > 1) //Multiply the rest of mobs. [Skotlex] + mob_summonslave(md,md->db->skill[md->skillidx].val,skilllv-1,skillid); + if (class_) mob_class_change(md, class_); } break; |