summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-12 11:30:48 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-12 11:30:48 +0000
commit3c22178a361374357075722777b31690119a068e (patch)
tree0a2b8845a8254a1dbd33c449d34022b5296841e7 /src
parent2bf2276c6fbc44473d0d1345b28505801c91c573 (diff)
downloadhercules-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')
-rw-r--r--src/map/skill.c3
-rw-r--r--src/map/status.c7
-rw-r--r--src/map/unit.c28
3 files changed, 9 insertions, 29 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 186c33fbd..239db16e4 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5576,9 +5576,6 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data)
}
ud->skilltimer = INVALID_TIMER;
-
- if( sd && (ud->skillid == CR_GRANDCROSS || ud->skillid == NPC_GRANDDARKNESS) )
- status_calc_bl(&sd->bl, SCB_DEF); // restore original DEF
}
if (ud->skilltarget == id)
diff --git a/src/map/status.c b/src/map/status.c
index 6e4394751..3199e05f2 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3685,13 +3685,6 @@ static signed short status_calc_flee2(struct block_list *bl, struct status_chang
static signed char status_calc_def(struct block_list *bl, struct status_change *sc, int def)
{
- if( bl->type == BL_PC )
- {
- struct unit_data *ud = unit_bl2ud( bl);
- if( ud && ud->skilltimer != INVALID_TIMER && (ud->skillid == CR_GRANDCROSS || ud->skillid == NPC_GRANDDARKNESS) )
- def = def*2/3;
- }
-
if(!sc || !sc->count)
return (signed char)cap_value(def,CHAR_MIN,CHAR_MAX);
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;
}
}