From b03cc563ebc69da01d6bc00ed55fb62a3793affa Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Sun, 27 Sep 2020 03:04:33 -0400 Subject: [PATCH] Fix mobs not aggroing --- src/MobManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MobManager.cpp b/src/MobManager.cpp index 586140e..67fb38a 100644 --- a/src/MobManager.cpp +++ b/src/MobManager.cpp @@ -318,7 +318,7 @@ void MobManager::roamingStep(Mob *mob, time_t currTime) { * We reuse nextAttack to avoid scanning for players all the time, but to still * do so more often than if we waited for nextMovement (which is way too slow). */ - if (mob->nextAttack == 0 || currTime < mob->nextAttack) { + if (mob->nextAttack == 0 || currTime >= mob->nextAttack) { mob->nextAttack = currTime + (int)mob->data["m_iDelayTime"] * 100; /*