summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index a620959ea..3793cecae 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3567,8 +3567,10 @@ static bool mob_parse_dbrow(char** str)
status->speed = atoi(str[26]);
status->aspd_rate = 1000;
- status->adelay = atoi(str[27]);
- status->amotion = atoi(str[28]);
+ i = atoi(str[27]);
+ status->adelay = cap_value(i, battle_config.monster_max_aspd*2, 4000);
+ i = atoi(str[28]);
+ status->amotion = cap_value(i, battle_config.monster_max_aspd, 2000);
//If the attack animation is longer than the delay, the client crops the attack animation!
//On aegis there is no real visible effect of having a recharge-time less than amotion anyway.
if (status->adelay < status->amotion)