[Quest API] (Performance) Check event exists before export and execute EVENT_TICK (#2919)

# Notes
- Optionally parse this event instead of always doing so.
This commit is contained in:
Alex King authored and GitHub committed 2023-02-12 22:16:39 -06:00
1 parent c060280417
commit 1bf24273d2
1 file changed
+4 -1
+4 -1
View File
@@ -898,7 +898,10 @@ bool NPC::Process()
}
if (tic_timer.Check()) {
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
}
BuffProcess();
if (currently_fleeing) {