diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-06-09 13:07:56 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-06-09 13:07:56 +0000 |
commit | 73a88a624ad1aabc7c92956eaffe7b60f9c8a40a (patch) | |
tree | 015147665fca50b2eb4e21fc307c263c81f24d4c /src/map/status.c | |
parent | a942df4fc89ec607af8ac81c5055a86119373871 (diff) | |
download | hercules-73a88a624ad1aabc7c92956eaffe7b60f9c8a40a.tar.gz hercules-73a88a624ad1aabc7c92956eaffe7b60f9c8a40a.tar.bz2 hercules-73a88a624ad1aabc7c92956eaffe7b60f9c8a40a.tar.xz hercules-73a88a624ad1aabc7c92956eaffe7b60f9c8a40a.zip |
Added a check to prevent resetting a mob's hp to full when it levels up using the custom mobs_level_up feature (accidentally deleted in r13789) (bugreport:3216).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13871 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 602978f18..b3433728c 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1503,7 +1503,8 @@ int status_calc_mob_(struct mob_data* md, bool first) status->aspd_rate -= 100*md->guardian_data->guardup_lv; } - memcpy(&md->status, status, sizeof(struct status_data)); + if( first ) //Initial battle status + memcpy(&md->status, status, sizeof(struct status_data)); return 1; } |