diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-08 23:02:03 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-08 23:02:03 -0300 |
commit | c20ee2295832e1f9cc7e29a54df754d6ce3f0d0c (patch) | |
tree | 9f04446b423a57eccb067cb5b5c019c526a72012 /src/map | |
parent | eb9056d8787181095af379c0861ef45d790b7385 (diff) | |
download | tmwa-c20ee2295832e1f9cc7e29a54df754d6ce3f0d0c.tar.gz tmwa-c20ee2295832e1f9cc7e29a54df754d6ce3f0d0c.tar.bz2 tmwa-c20ee2295832e1f9cc7e29a54df754d6ce3f0d0c.tar.xz tmwa-c20ee2295832e1f9cc7e29a54df754d6ce3f0d0c.zip |
Break balance: Potions and Betsanc now affect mages speed (incl. upmarmu).
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); |