mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Performance] Disabled enraged timer checks for NPC's that do not actually have enrage as a special attack
This commit is contained in:
@@ -717,6 +717,11 @@ bool NPC::Process()
|
||||
|
||||
if (enraged_timer.Check()){
|
||||
ProcessEnrage();
|
||||
|
||||
/* Don't keep running the check every second if we don't have enrage */
|
||||
if (!GetSpecialAbility(SPECATK_ENRAGE)) {
|
||||
enraged_timer.Disable();
|
||||
}
|
||||
}
|
||||
|
||||
//Handle assists...
|
||||
|
||||
Reference in New Issue
Block a user