Fixed MIN_MOBLINKTIME not working (#6904)
This commit is contained in:
@@ -2770,7 +2770,7 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, t_tick tick)
|
||||
// Set mob's ANGRY/BERSERK states.
|
||||
md->state.skillstate = md->state.aggressive?MSS_ANGRY:MSS_BERSERK;
|
||||
|
||||
if (status_has_mode(sstatus,MD_ASSIST) && DIFF_TICK(md->last_linktime, tick) < MIN_MOBLINKTIME) {
|
||||
if (status_has_mode(sstatus,MD_ASSIST) && DIFF_TICK(tick, md->last_linktime) >= MIN_MOBLINKTIME) {
|
||||
// Link monsters nearby [Skotlex]
|
||||
md->last_linktime = tick;
|
||||
map_foreachinrange(mob_linksearch, src, md->db->range2, BL_MOB, md->mob_id, target, tick);
|
||||
|
||||
Reference in New Issue
Block a user