summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 43bda4b60..a273a245b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -12747,9 +12747,11 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, short
req.sp += (status->sp * sp_rate)/100;
else
req.sp += (status->max_sp * (-sp_rate))/100;
- if( sd->dsprate!=100 )
+ if( sd->dsprate != 100 )
req.sp = req.sp * sd->dsprate / 100;
+ req.sp = cap_value(req.sp * pc_sp_rate_skill(sd,skill) / 100, 0, SHRT_MAX);
+
if( sc ) {
if( sc->data[SC__LAZINESS] )
req.sp += req.sp + sc->data[SC__LAZINESS]->val1 * 10;