[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 2023-02-12 23:16:39 -05:00 committed by GitHub
parent c060280417
commit 1bf24273d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -898,7 +898,10 @@ bool NPC::Process()
}
if (tic_timer.Check()) {
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
}
BuffProcess();
if (currently_fleeing) {