summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-24 21:28:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-24 23:19:43 +0300
commit9fde855bfad89c9842c3f7525fe431e411a713f7 (patch)
tree6fb6be124718881e0e4ec1bd9d427ae4b79b5c52 /src/map/battle.h
parent7952c1fe1f92b7b4907545c6b24ccfc383c87555 (diff)
downloadhercules-9fde855bfad89c9842c3f7525fe431e411a713f7.tar.gz
hercules-9fde855bfad89c9842c3f7525fe431e411a713f7.tar.bz2
hercules-9fde855bfad89c9842c3f7525fe431e411a713f7.tar.xz
hercules-9fde855bfad89c9842c3f7525fe431e411a713f7.zip
Move ammo check into separate function in battle.c
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 49abdc730..6fa600ada 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -593,6 +593,8 @@ struct battle_interface {
int64 (*calc_bg_damage) (struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag);
/* normal weapon attack */
enum damage_lv (*weapon_attack) (struct block_list *bl, struct block_list *target, int64 tick, int flag);
+ /* check is equipped ammo and this ammo allowed */
+ bool (*check_arrows) (struct map_session_data *sd);
/* calculate weapon attack */
struct Damage (*calc_weapon_attack) (struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv,int wflag);
/* delays damage or skills by a timer */