From 21742909143df9159b2401c3e2a39cc0b2bad620 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 7 Aug 2012 15:00:26 -0700 Subject: Disable splash damage in towns --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 67ceb03..7be069e 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -932,7 +932,7 @@ static int mob_attack (struct mob_data *md, unsigned int tick, int data) // If you are reading this, please note: // it is highly platform-specific that this even works at all. int radius = battle_config.mob_splash_radius; - if (radius >= 0 && tbl->type == BL_PC) + if (radius >= 0 && tbl->type == BL_PC && !map[tbl->m].flag.town) map_foreachinarea(mob_ancillary_attack, tbl->m, tbl->x - radius, tbl->y - radius, tbl->x + radius, tbl->y + radius, BL_PC, -- cgit v1.2.3-60-g2f50