[Performance] Disabled enraged timer checks for NPC's that do not actually have enrage as a special attack

This commit is contained in:
Akkadius committed 2017-03-28 02:45:07 -05:00
1 parent 47691c2102
commit f931ef7bcb
2 files changed
+9 -3

No files matched your search

+5
View File
@@ -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...