summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-31 21:26:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-31 21:26:22 +0300
commit1e49a9dd41900d045c94ebfe34909fa9e4dba32f (patch)
treef521e38b69ea7409645c8b6ac18fc576d9aa74d8 /src/emap/init.c
parent48ce547ec3ead9228f81404c7abf4ee99dbe2819 (diff)
downloadplugin-1e49a9dd41900d045c94ebfe34909fa9e4dba32f.tar.gz
plugin-1e49a9dd41900d045c94ebfe34909fa9e4dba32f.tar.bz2
plugin-1e49a9dd41900d045c94ebfe34909fa9e4dba32f.tar.xz
plugin-1e49a9dd41900d045c94ebfe34909fa9e4dba32f.zip
Add into item_db.conf support for attribute AllowAmmo for bows.
This allow limit any arrow/ammo for any bows/guns.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index df62add..33d5025 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -44,6 +44,7 @@
#include "ecommon/config.h"
#include "ecommon/init.h"
#include "emap/atcommand.h"
+#include "emap/battle.h"
#include "emap/battleground.h"
#include "emap/clif.h"
#include "emap/config.h"
@@ -262,6 +263,7 @@ HPExport void plugin_init (void)
addHookPre(status, set_viewdata, estatus_set_viewdata_pre);
addHookPre(homun, gainexp, ehomunculus_gainexp_pre);
+ addHookPost(battle, check_arrows, ebattle_check_arrows_post);
addHookPost(clif, addcards, eclif_addcards_post);
addHookPost(clif, addcards2, eclif_addcards2_post);
addHookPost(clif, getareachar_unit, eclif_getareachar_unit_post);