diff options
author | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-08-20 21:20:46 -0300 |
---|---|---|
committer | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-08-30 12:04:06 -0300 |
commit | 6a0d3d52dcb64a4e04d49336fa7bdf82874a7cc1 (patch) | |
tree | 554d7c0f25b7c44076a93da4507e74a697bcf09e /src/map/battle.h | |
parent | 7f7b8060cba8f0aba60f43cf343bdf3f773f3438 (diff) | |
download | hercules-6a0d3d52dcb64a4e04d49336fa7bdf82874a7cc1.tar.gz hercules-6a0d3d52dcb64a4e04d49336fa7bdf82874a7cc1.tar.bz2 hercules-6a0d3d52dcb64a4e04d49336fa7bdf82874a7cc1.tar.xz hercules-6a0d3d52dcb64a4e04d49336fa7bdf82874a7cc1.zip |
Makes trap damage possible to be reflected
Diffstat (limited to 'src/map/battle.h')
-rw-r--r-- | src/map/battle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h index 9f5207e95..c16007e16 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; @@ -636,6 +637,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 */ |