Fix mobs not aggroing

This commit is contained in:
Gent Semaj 2020-09-27 03:04:33 -04:00
parent dd374b2ea1
commit b03cc563eb

View File

@ -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 * 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). * 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; mob->nextAttack = currTime + (int)mob->data["m_iDelayTime"] * 100;
/* /*