From 6ab86d910d20796d5b4a4759af133e7bc608b035 Mon Sep 17 00:00:00 2001 From: rud0lp20 Date: Tue, 25 Dec 2012 13:14:01 +0000 Subject: 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 --- src/map/skill.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/skill.c') 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 -- cgit v1.2.3-70-g09d2