summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-24 20:21:46 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-24 20:21:46 +0000
commit38e55a7c23b9ae0f9227120ba4d465999a0b3427 (patch)
tree31f3fe43cfde4c1a0f2a5e349d7fc0738c0c81d9 /src/map/status.c
parent182a0282401297b608db331676882e9dfe7cd89f (diff)
downloadhercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.gz
hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.bz2
hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.xz
hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.zip
Fixed behavior in permanent mob spawns allowing new optional parameters: level, size and AI.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16962 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 3d3062fb3..a24011292 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1999,7 +1999,10 @@ int status_calc_mob_(struct mob_data* md, bool first)
if(first)
{ //Set basic level on respawn.
- md->level = md->db->lv;
+ if (md->level > 0 && md->level <= MAX_LEVEL && md->level != md->db->lv)
+ ;
+ else
+ md->level = md->db->lv;
}
//Check if we need custom base-status