Implement RuleB(Skills, RequireTomeHandin)

This commit is contained in:
Paul Coene 2020-02-16 11:42:55 -05:00 committed by GitHub
parent 5901df4485
commit bd4fa4fb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8653,7 +8653,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
}
else if (inst->IsClassCommon())
{
if (item->ItemType == EQEmu::item::ItemTypeSpell && (strstr((const char*)item->Name, "Tome of ") || strstr((const char*)item->Name, "Skill: ")))
if (!RuleB(Skills, RequireTomeHandin) && item->ItemType == EQEmu::item::ItemTypeSpell && (strstr((const char*)item->Name, "Tome of ") || strstr((const char*)item->Name, "Skill: ")))
{
DeleteItemInInventory(slot_id, 1, true);
TrainDiscipline(item->ID);