summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-01 01:30:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-01 01:30:35 +0300
commit4f35fa5d10ba0a30157205227f25aed6da67f4e1 (patch)
tree5d348e835494204a5b4f6ea0a70cb5d0d2dae470 /src/emap/init.c
parenta3158d2110a2a846d39a5ddc364adb40c212241d (diff)
downloadevol-hercules-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.gz
evol-hercules-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.bz2
evol-hercules-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.xz
evol-hercules-4f35fa5d10ba0a30157205227f25aed6da67f4e1.zip
Add into mob_db skill type attacks modifier.
New group in mob_db: SkillAttacks Example: SkillAttacks: { SM_BASH: 5000 // mean SM_BASH skill do 50% of normal damage } Default value is 10000 mean 100%
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 179fe59..fb95d32 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -270,6 +270,8 @@ HPExport void plugin_init (void)
addHookPre(homun, gainexp, ehomunculus_gainexp_pre);
addHookPost(battle, calc_weapon_attack, ebattle_calc_weapon_attack_post);
+ addHookPost(battle, calc_magic_attack, ebattle_calc_weapon_attack_post);
+ addHookPost(battle, calc_misc_attack, ebattle_calc_weapon_attack_post);
addHookPost(battle, check_arrows, ebattle_check_arrows_post);
addHookPost(clif, addcards, eclif_addcards_post);
addHookPost(clif, addcards2, eclif_addcards2_post);