diff options
author | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-25 13:14:01 +0000 |
---|---|---|
committer | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-25 13:14:01 +0000 |
commit | 6ab86d910d20796d5b4a4759af133e7bc608b035 (patch) | |
tree | 04324a5f6c41b23fe0b32ba72a51a787d2ce45a5 /src/map/skill.c | |
parent | ea1a321438e75b66b3fc8148b6eaa41d049761dd (diff) | |
download | hercules-6ab86d910d20796d5b4a4759af133e7bc608b035.tar.gz hercules-6ab86d910d20796d5b4a4759af133e7bc608b035.tar.bz2 hercules-6ab86d910d20796d5b4a4759af133e7bc608b035.tar.xz hercules-6ab86d910d20796d5b4a4759af133e7bc608b035.zip |
Fixed bugreport:7015 missing base aspd for High Priest wearing knuckles.
Fixed bugreport:7033 where fixed cast time reduction bonuses affect variable cast time.
Fixed bugreport:7034 stats display should now display properly when skill debuffs/buffs are used.
Fixed bugreport:6840 where Fire Cloak and Wind Curtain accidentally changed elemental damage resistance.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17043 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2ea3ceaa2..1fb0b4fcc 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -13837,9 +13837,8 @@ int skill_vfcastfix (struct block_list *bl, double time, int skill_id, int skill if( !(skill_get_castnodex(skill_id, skill_lv)&1) )// reduction from status point time = (1 - sqrt( ((float)(status_get_dex(bl)*2 + status_get_int(bl)) / battle_config.vcast_stat_scale) )) * time; // underflow checking/capping - time = max(time, 0) + (1 - (float)min(fixcast_r, 100) / 100) * fixed; + time = max(time, 0) + (1 - (float)min(fixcast_r, 100) / 100) * max(fixed,0); - // ShowInfo("Casttime vfcastfix = %d\n",time); return (int)time; } #endif |