From 3c22178a361374357075722777b31690119a068e Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 12 May 2009 11:30:48 +0000 Subject: * Removed DEF reduction display when casting GrandCross. - This might not be official and led to repeated calculation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13758 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index b5a56fb4b..0a264fb30 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1072,7 +1072,15 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh ud->canact_tick = tick + casttime + 100; if ( battle_config.display_status_timers && sd ) clif_status_change(src, SI_ACTIONDELAY, 1, casttime); - + if( sd ) + { + switch( skill_num ) + { + case CG_ARROWVULCAN: + sd->canequip_tick = tick + casttime; + break; + } + } ud->skilltarget = target_id; ud->skillx = 0; ud->skilly = 0; @@ -1092,20 +1100,6 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh status_calc_bl(&sd->bl, SCB_SPEED); else unit_stop_walking(src,1); - - if( sd ) - { - switch( skill_num ) - { - case CG_ARROWVULCAN: - sd->canequip_tick = tick + casttime; - break; - case CR_GRANDCROSS: - case NPC_GRANDDARKNESS: - status_calc_bl(src, SCB_DEF); - break; - } - } } else skill_castend_id(ud->skilltimer,tick,src->id,0); @@ -1646,10 +1640,6 @@ int unit_skillcastcancel(struct block_list *bl,int type) case CG_ARROWVULCAN: sd->canequip_tick = tick; break; - case CR_GRANDCROSS: - case NPC_GRANDDARKNESS: - status_calc_bl(bl, SCB_DEF); - break; } } -- cgit v1.2.3-70-g09d2