Mob_db adelay
and amotion
values sanitizing (related bugreport:3968).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15536 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
a343027d2a
commit
453af93a07
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user