summaryrefslogtreecommitdiff
path: root/src/map/config/const.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/config/const.h')
-rw-r--r--src/map/config/const.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/config/const.h b/src/map/config/const.h
index 7acc5e522..b67ed050f 100644
--- a/src/map/config/const.h
+++ b/src/map/config/const.h
@@ -87,9 +87,9 @@
#define RE_LVL_DMOD() \
if( status_get_lv(src) > 100 ) \
skillratio = skillratio * status_get_lv(src) / 100;
- #define RE_LVL_MDMOD() \
- if( status_get_lv(src) > 100 ) \
- md.damage = md.damage * status_get_lv(src) / 150;
+ #define RE_LVL_MDMOD(val) \
+ if( status_get_lv(src) > 100 && val > 0) \
+ md.damage = md.damage * status_get_lv(src) / val;
/* ranger traps special */
#define RE_LVL_TMDMOD() \
if( status_get_lv(src) > 100 ) \