From e4e96a9cba74f4341c075b345a57dc3a89247e56 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 23 Apr 2007 22:41:18 +0000 Subject: - All mob casted skills have a fixed range of 9 now. You can use monster_ai&0x400 to disable this and make the old skill range rules apply. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10331 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 254c89aa7..48c9240b1 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -751,7 +751,12 @@ int skill_get_casttype (int id) //Returns actual skill range taking into account attack range and AC_OWL [Skotlex] int skill_get_range2 (struct block_list *bl, int id, int lv) { - int range = skill_get_range(id, lv); + int range; + 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); + if(range < 0) { if (battle_config.use_weapon_skill_range&bl->type) return status_get_range(bl); -- cgit v1.2.3-60-g2f50