summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-03 18:38:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-03 18:38:32 +0300
commitc558e3645f5154ee001e5ba8b295556316356ab0 (patch)
tree934ddc944e4f62390b62e3136c8c84d0e1a0ce66 /src/emap/init.c
parent211787e349e0249fc032b3b51f8649af613f5ecf (diff)
downloadevol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.gz
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.bz2
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.tar.xz
evol-hercules-c558e3645f5154ee001e5ba8b295556316356ab0.zip
Add support for MinRange in item_db.
If weapon used on range smaller than MinRange, weapon not attacking.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 23a2a88..e6a4113 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -201,6 +201,7 @@ HPExport void plugin_init (void)
addHookPre(atcommand, msgfd, eatcommand_msgfd_pre);
addHookPre(atcommand, msgsd, eatcommand_msgsd_pre);
+ addHookPre(battle, weapon_attack, ebattle_weapon_attack_pre);
addHookPre(bg, team_warp, ebg_team_warp_pre);
addHookPre(pc, can_Adopt, epc_can_Adopt_pre);
addHookPre(pc, adoption, epc_adoption_pre);