mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
[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:
parent
c060280417
commit
1bf24273d2
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user