mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 19:32:24 +00:00
Change AI_scan_area_timer to have a little variability in renewing a new timer time versus deciding one on spawn and sticking with it
This commit is contained in:
parent
67c7254fd1
commit
27c8a85f61
@ -1364,9 +1364,14 @@ void Mob::AI_Process() {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Mob* tmptar = entity_list.AICheckCloseAggro(this, GetAggroRange(), GetAssistRange());
|
Mob* temp_target = entity_list.AICheckCloseAggro(this, GetAggroRange(), GetAssistRange());
|
||||||
if (tmptar)
|
if (temp_target){
|
||||||
AddToHateList(tmptar);
|
AddToHateList(temp_target);
|
||||||
|
}
|
||||||
|
|
||||||
|
AI_scan_area_timer->Disable();
|
||||||
|
AI_scan_area_timer->Start(RandomTimer(RuleI(NPC, NPCToNPCAggroTimerMin), RuleI(NPC, NPCToNPCAggroTimerMax)), false);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (AI_movement_timer->Check() && !IsRooted())
|
else if (AI_movement_timer->Check() && !IsRooted())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user