Fix mobs not aggroing

This commit is contained in:
Gent Semaj 2020-09-27 03:04:33 -04:00
parent dd374b2ea1
commit b03cc563eb
1 changed files with 1 additions and 1 deletions

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
* 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;
/*