summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-07 12:43:37 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-07 12:43:37 +0000
commit7666e881212f15d7d8ed22ef6ee82f98b15c175c (patch)
tree474a19c532e544e5b37829610003225db1b2916c /src/map/status.c
parent81a85e322a784f6237b1948c53dca39bffb42f18 (diff)
downloadhercules-7666e881212f15d7d8ed22ef6ee82f98b15c175c.tar.gz
hercules-7666e881212f15d7d8ed22ef6ee82f98b15c175c.tar.bz2
hercules-7666e881212f15d7d8ed22ef6ee82f98b15c175c.tar.xz
hercules-7666e881212f15d7d8ed22ef6ee82f98b15c175c.zip
* Update Waterball code due to info updated
* A piece of GX casttime def reduction code I forgot to merge git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13737 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index c7b7b1567..792c225d0 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3685,6 +3685,13 @@ 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);