From 3317a790778189da1ad69f75947c519f0d0b3563 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sat, 11 Jul 2009 04:48:40 +0000 Subject: * Some updates for range check. (bugreport:3339) - Monsters shouldn't use skills if the target is within its attack range but is out of the skill range. - Monsters' skill range is no longer 9 by default. - Range for players' attacks and skills should always check for a circular area. - The range of Magnetic Earth is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index ec8115080..eee0236a6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -218,7 +218,7 @@ int skill_get_casttype (int id) int skill_get_range2 (struct block_list *bl, int id, int lv) { int range; - if( bl->type == BL_MOB && !(battle_config.mob_ai&0x400) ) + if( bl->type == BL_MOB && battle_config.mob_ai&0x400 ) return 9; //Mobs have a range of 9 regardless of skill used. range = skill_get_range(id, lv); -- cgit v1.2.3-70-g09d2