* Update Waterball code due to info updated
* A piece of GX casttime def reduction code I forgot to merge git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13737 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
0595535167
commit
96635c8c81
@ -2832,8 +2832,8 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
|
|||||||
int x, y;
|
int x, y;
|
||||||
struct skill_unit* unit;
|
struct skill_unit* unit;
|
||||||
|
|
||||||
if( src->type == BL_PC && skilllv > maxlv )
|
if( skilllv > maxlv && (src->type == BL_PC || skilllv < 10) )
|
||||||
range = maxlv / 2;
|
range = maxlv / 2;
|
||||||
|
|
||||||
for( y = src->y - range; y <= src->y + range; ++y )
|
for( y = src->y - range; y <= src->y + range; ++y )
|
||||||
for( x = src->x - range; x <= src->x + range; ++x )
|
for( x = src->x - range; x <= src->x + range; ++x )
|
||||||
|
@ -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)
|
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)
|
if(!sc || !sc->count)
|
||||||
return (signed char)cap_value(def,CHAR_MIN,CHAR_MAX);
|
return (signed char)cap_value(def,CHAR_MIN,CHAR_MAX);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user