[Quest API] Optionally parse EVENT_TEST_BUFF (#2920)

# 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:17 -06:00
1 parent bc6efd5f74
commit c060280417
1 file changed
+4 -2
+4 -2
View File
@@ -14445,8 +14445,10 @@ void Client::Handle_OP_TestBuff(const EQApplicationPacket *app)
if (!RuleB(Character, EnableTestBuff)) {
return;
}
parse->EventPlayer(EVENT_TEST_BUFF, this, "", 0);
return;
if (parse->PlayerHasQuestSub(EVENT_TEST_BUFF)) {
parse->EventPlayer(EVENT_TEST_BUFF, this, "", 0);
}
}
void Client::Handle_OP_TGB(const EQApplicationPacket *app)