viewing paste Unknown #17371 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// hercules
static unsigned short status_calc_dmotion(struct block_list *bl, struct status_change *sc, int dmotion) {
 
    if( !sc || !sc->count || map_flag_gvg2(bl->m) || map->list[bl->m].flag.battleground )
        return cap_value(dmotion,0,USHRT_MAX);
 
    if( sc->data[SC_ENDURE] )
        return 0;
    if( sc->data[SC_RUN] || sc->data[SC_WUGDASH] )
        return 0;
 
    return (unsigned short)cap_value(dmotion,0,USHRT_MAX);
}
 
// eathena
 
static unsigned short status_calc_dmotion(struct block_list *bl, struct status_change *sc, int dmotion)
{
    if( !sc || !sc->count || map_flag_gvg(bl->m) || map[bl->m].flag.battleground )
        return cap_value(dmotion,0,USHRT_MAX);
        
    if( sc->data[SC_ENDURE] )
        return 0;
    if( sc->data[SC_CONCENTRATION] )
        return 0;
    if( sc->data[SC_RUN] )
        return 0;
 
    return (unsigned short)cap_value(dmotion,0,USHRT_MAX);
}
Viewed 920 times, submitted by milk.