diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-23 22:41:18 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-23 22:41:18 +0000 |
commit | e4e96a9cba74f4341c075b345a57dc3a89247e56 (patch) | |
tree | 31869ce72efe40104f68880aa758170076df78d1 /src/map | |
parent | 1756a50d8dcc134ab3f7ae847edb33cd21fb2e2e (diff) | |
download | hercules-e4e96a9cba74f4341c075b345a57dc3a89247e56.tar.gz hercules-e4e96a9cba74f4341c075b345a57dc3a89247e56.tar.bz2 hercules-e4e96a9cba74f4341c075b345a57dc3a89247e56.tar.xz hercules-e4e96a9cba74f4341c075b345a57dc3a89247e56.zip |
- 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
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |