summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-10-21 23:45:20 +0200
committerGitHub <noreply@github.com>2018-10-21 23:45:20 +0200
commitb196e2b794bb96c1584c885f50e63326678ae89e (patch)
treecb6858c2f690018c9df097dd96a986ec22089fb5 /src/map/battle.h
parentf275d6a7d432953d2af6b9c0fe897be5e7657e1c (diff)
parentdca07b9b9e9640085412b1ceafd691727b871048 (diff)
downloadhercules-b196e2b794bb96c1584c885f50e63326678ae89e.tar.gz
hercules-b196e2b794bb96c1584c885f50e63326678ae89e.tar.bz2
hercules-b196e2b794bb96c1584c885f50e63326678ae89e.tar.xz
hercules-b196e2b794bb96c1584c885f50e63326678ae89e.zip
Merge pull request #2182 from guilherme-gm/201808-trapfix
Fixes some issues with traps
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 4472c0c52..02536e4a1 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -506,6 +506,7 @@ struct Battle_Config {
/** Hercules **/
int skill_trap_type;
+ int trap_reflect;
int item_restricted_consumption_type;
int unequip_restricted_equipment;
int max_walk_path;
@@ -639,6 +640,8 @@ struct battle_interface {
void (*drain) (struct map_session_data *sd, struct block_list *tbl, int64 rdamage, int64 ldamage, int race, int boss);
/* damage reflect */
void (*reflect_damage) (struct block_list *target, struct block_list *src, struct Damage *wd,uint16 skill_id);
+ /* trap reflect */
+ void(*reflect_trap) (struct block_list *target, struct block_list *src, struct Damage *md, uint16 skill_id);
/* attribute rate */
int (*attr_ratio) (int atk_elem, int def_type, int def_lv);
/* applies attribute modifiers */