diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index a414857..dd2c604 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -1517,12 +1517,13 @@ int pc_calcstatus(dumb_ptr<map_session_data> sd, int first) if (sd->speed_rate != 100) sd->speed = sd->speed * sd->speed_rate / 100; sd->speed = std::max(sd->speed, 1_ms); - if (aspd_rate != 100) - sd->aspd = sd->aspd * aspd_rate / 100; if (sd->attack_spell_override) sd->aspd = sd->attack_spell_delay; + if (aspd_rate != 100) + sd->aspd = sd->aspd * aspd_rate / 100; + sd->aspd = std::max(sd->aspd, battle_config.max_aspd); sd->amotion = sd->aspd; sd->dmotion = std::chrono::milliseconds(800 - sd->paramc[ATTR::AGI] * 4); |