[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
2023-02-12 23:16:17 -05:00
committed by GitHub
parent bc6efd5f74
commit c060280417
+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)