diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-18 15:03:26 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-18 15:03:26 +0000 |
commit | adf1641e5efb0e136a03d5bdefdc9ae20c2d6450 (patch) | |
tree | 19550db534b2916e87b8c693a9f4648b81c6df37 | |
parent | 8d4691495b96e0ad1e6cba84176a82d49a009764 (diff) | |
download | hercules-adf1641e5efb0e136a03d5bdefdc9ae20c2d6450.tar.gz hercules-adf1641e5efb0e136a03d5bdefdc9ae20c2d6450.tar.bz2 hercules-adf1641e5efb0e136a03d5bdefdc9ae20c2d6450.tar.xz hercules-adf1641e5efb0e136a03d5bdefdc9ae20c2d6450.zip |
Fixed @homlvup
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8346 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/map/atcommand.c | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 6611c6c6a..e570c8d67 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/18
+ * Fixed @homlvup [Toms]
* Added guild_aura (skill.conf) setting so you can specify when it works
and if it works on the guild-master itself. Defaults to working all the
time on everyone except GM. [Skotlex]
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index f87418c6b..00bc9dd39 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9775,6 +9775,7 @@ int atcommand_homlevel( const int fd, struct map_session_data* sd,
const char* command, const char* message)
{
+ TBL_HOM * hd;
int level = 0, i = 0;
nullpo_retr(-1, sd);
@@ -9786,12 +9787,15 @@ int atcommand_homlevel( return 1 ;
level = atoi(message);
+ hd = sd->hd;
- for (i = 1; i <= level && sd->hd->exp_next; i++){
- sd->homunculus.exp += sd->hd->exp_next;
- merc_hom_levelup(sd->hd);
+ for (i = 1; i <= level && hd->exp_next; i++){
+ sd->homunculus.exp += hd->exp_next;
+ merc_hom_levelup(hd);
}
- clif_misceffect2(&sd->hd->bl,568);
+ status_calc_homunculus(hd,0);
+ status_percent_heal(&hd->bl, 100, 100);
+ clif_misceffect2(&hd->bl,568);
return 0;
}
|