summaryrefslogtreecommitdiff
path: root/src/map/config/const.h
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 14:52:13 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 14:52:13 +0000
commitc7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09 (patch)
tree8106e6329419f438c59c2b437f34dcabfbd69c96 /src/map/config/const.h
parente48d77bc2d05725ebabfc8b314800c1ab808da04 (diff)
downloadhercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.gz
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.bz2
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.xz
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.zip
Fixed bugreport:5889 GC_ROLLINGCUTTER range and behavior are now updated.
Fixed part of bugreport:5880 -Fixed damage formula of NC_SELFDESTRUCTION. -Fixed damage formula of GC_CROSSRIPPERSLASHER. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16206 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 ) \