summaryrefslogtreecommitdiff
path: root/src/config/const.h
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-07-04 14:35:24 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-07-04 14:35:24 -0300
commit5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac (patch)
tree1a622268c8f8f148de045c408b6e94f4b4592b93 /src/config/const.h
parent5479f9631f8579d03fbfd14d8a49c7976226a156 (diff)
parent6ced266cc8d41ce6a3c5323c22f295e37b3f5684 (diff)
downloadhercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.gz
hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.bz2
hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.xz
hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/config/const.h')
-rw-r--r--src/config/const.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/const.h b/src/config/const.h
index d8e397b1e..b51db97e5 100644
--- a/src/config/const.h
+++ b/src/config/const.h
@@ -62,6 +62,11 @@
#ifdef RENEWAL
#define MOB_FLEE(mob) ( mob->lv + mob->status.agi + 100 )
#define MOB_HIT(mob) ( mob->lv + mob->status.dex + 150 )
+ #define RE_SKILL_REDUCTION(){ \
+ wd.damage = battle->calc_elefix(src, target, skill_id, skill_lv, battle->calc_cardfix(BF_WEAPON, src, target, nk, s_ele, s_ele_, wd.damage, 2, wd.flag), nk, n_ele, s_ele, s_ele_, false, flag.arrow); \
+ if( flag.lh ) \
+ wd.damage2 = battle->calc_elefix(src, target, skill_id, skill_lv, battle->calc_cardfix(BF_WEAPON, src, target, nk, s_ele, s_ele_, wd.damage2, 3, wd.flag), nk, n_ele, s_ele, s_ele_, true, flag.arrow); \
+ }
#else
#define MOB_FLEE(mob) ( mob->lv + mob->status.agi )
#define MOB_HIT(mob) ( mob->lv + mob->status.dex )