diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-12 11:30:48 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-12 11:30:48 +0000 |
commit | 3c22178a361374357075722777b31690119a068e (patch) | |
tree | 0a2b8845a8254a1dbd33c449d34022b5296841e7 /src/map/unit.c | |
parent | 2bf2276c6fbc44473d0d1345b28505801c91c573 (diff) | |
download | hercules-3c22178a361374357075722777b31690119a068e.tar.gz hercules-3c22178a361374357075722777b31690119a068e.tar.bz2 hercules-3c22178a361374357075722777b31690119a068e.tar.xz hercules-3c22178a361374357075722777b31690119a068e.zip |
* 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
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 28 |
1 files changed, 9 insertions, 19 deletions
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; } } |