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

This commit is contained in:
Akkadius
2017-03-28 02:45:07 -05:00
parent 47691c2102
commit f931ef7bcb
2 changed files with 9 additions and 3 deletions
+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...