From e19c834ae2ef2aa0b5c45c1a6475600f11b8bc54 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 24 Aug 2006 04:19:56 +0000 Subject: [PATCH] - Fixed mob_clone_spawn completely ignoring the mode variable. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8462 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/mob.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index eb5774441f..830cc2ada0 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/08/23 + * Fixed mob_clone_spawn completely ignoring the mode variable. [Skotlex] * Fixed Energy Coat reducing and consuming more than it should when you have 100% SP [Skotlex] * Cleaned up getmapxy script function, also added support for type 4 so diff --git a/src/map/mob.c b/src/map/mob.c index 18c845bafe..19f258b3f4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2863,7 +2863,9 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char mob_db_data[class_]->status.rhw.atk2+= sd->base_status.rhw.atk + sd->base_status.rhw.atk2 + sd->base_status.lhw->atk + sd->base_status.lhw->atk2; //Max ATK - if (flag&1) //Friendly Character, remove looting. + if (mode) //User provided mode. + mob_db_data[class_]->status.mode = mode; + else if (flag&1) //Friendly Character, remove looting. mob_db_data[class_]->status.mode &= ~MD_LOOTER; mob_db_data[class_]->status.hp = mob_db_data[class_]->status.max_hp; mob_db_data[class_]->status.sp = mob_db_data[class_]->status.max_sp;