From da8a93191a589cd32f3f3517d4fa7e5c8c8570f5 Mon Sep 17 00:00:00 2001 From: wushin Date: Tue, 15 Sep 2015 13:20:08 -0500 Subject: Fix range issue in magic spells --- src/map/battle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/battle.cpp') diff --git a/src/map/battle.cpp b/src/map/battle.cpp index ef1567e..554ef14 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -134,7 +134,9 @@ int battle_get_range(dumb_ptr bl) if (bl->bl_type == BL::MOB) return get_mob_db(bl->is_mob()->mob_class).range; else if (bl->bl_type == BL::PC) - return bl->is_player()->attackrange; + return (bl->is_player()->attack_spell_override + ? bl->is_player()->attack_spell_range + : bl->is_player()->attackrange); else return 0; } -- cgit v1.2.3-60-g2f50