diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c index bff02bce3..a270baa57 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8128,13 +8128,10 @@ BUILDIN_FUNC(getscrate) bl = map_id2bl(st->rid); if (bl) - sc_def = status_get_sc_def(bl,type); - - rate = rate*(10000-sc_def)/10000; - script_pushint(st,rate<0?0:rate); + rate = status_get_sc_def(bl,type, 10000, 10000, 0); + script_pushint(st,rate); return 0; - } /*========================================== |