From 5971c8892d819545607ea75edf79996460f71c46 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 19 Jul 2006 14:31:01 +0000 Subject: - Corrected Trim chars to block 'enter', as explained by the Ultra mage. - When the client passes account version 0, the login server will set it to 1 now. - Corrected the HP bar scaling when HP is above Short Max. It should display fine for any HP value now. - Added a check when the mob's adelay is shorter than the amotion, in which case the adelay will be changed to the amotion value. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7742 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 8db078e27..8c8f59f4a 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3225,6 +3225,9 @@ static int mob_readdb(void) status->adelay=atoi(str[27]); status->amotion=atoi(str[28]); status->dmotion=atoi(str[29]); + //If the attack animation is longer than the delay, the client crops the attack animation! + if (status->adelay < status->amotion) + status->adelay = status->amotion; if(battle_config.monster_damage_delay_rate != 100) status->dmotion = status->dmotion*battle_config.monster_damage_delay_rate/100; @@ -3904,6 +3907,9 @@ static int mob_read_sqldb(void) status->adelay = TO_INT(27); status->amotion = TO_INT(28); status->dmotion = TO_INT(29); + //If the attack animation is longer than the delay, the client crops the attack animation! + if (status->adelay < status->amotion) + status->adelay = status->amotion; if(battle_config.monster_damage_delay_rate != 100) status->dmotion = status->dmotion*battle_config.monster_damage_delay_rate/100; -- cgit v1.2.3-60-g2f50