mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 11:50:04 +00:00
Fix mobs not aggroing
This commit is contained in:
parent
dd374b2ea1
commit
b03cc563eb
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user