From 40fc1ff930002e0ca7301e0f2d575a40f784fb10 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 24 Sep 2007 17:06:58 +0000 Subject: - Changed Greed Scroll's type to 11 (all itemskill items should use this) - Ignore %MDef bonuses now only reduce target's base MDEF, not MDEF2. - Updated the 'skills that cause no damage are blocked now if the skill element is blocked by the target' to only apply if the skill has a status change associated (fixes Resurrection/Heal being blocked). - Reverted the opt_flag2 change in status_change_start (clif_changeoption2) since it never served its purpose. - Added a warning to prevent loading mobs with IDs that belong to the clone range. - Changed MAX_MOB_DB to 3000, updated the definitions of the clone range defines so they are updated automatically with the change of MAX_MOB_DB. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11287 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index f8be3806b..bfa22fe4a 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3239,6 +3239,11 @@ static bool mob_parse_dbrow(char** str) return false; } + if (class_ >= MOB_CLONE_START && class_ < MOB_CLONE_END) { + ShowWarning("Mob with ID: %d not loaded. That ID is reserved for player clones. Please increase MAX_MOB_DB (%d)\n", MAX_MOB_DB); + return false; + } + if (mob_db_data[class_] == NULL) mob_db_data[class_] = aCalloc(1, sizeof (struct mob_data)); -- cgit v1.2.3-60-g2f50