viewing paste Unknown #17362 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12
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);
}
Viewed 973 times, submitted by milk.