From f681c7f6fcbdd167120569d1bfcd8f1b8e74d8da Mon Sep 17 00:00:00 2001 From: trojal Date: Thu, 31 May 2018 13:02:01 -0700 Subject: Don't overwrite mob.range with Inherit:true Using mob_db2 and Inherit: true shouldn't override the base mob's range if it's not included. --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index c0bf7946d..a194d8ef1 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -4312,7 +4312,7 @@ int mob_read_db_sub(struct config_setting_t *mobt, int n, const char *source) if (mob->lookup_const(mobt, "AttackRange", &i32) && i32 >= 0) { md.status.rhw.range = i32; - } else { + } else if (!inherit) { md.status.rhw.range = 1; } -- cgit v1.2.3-60-g2f50