[Spells] Adds a rule to allow right-click memorize from spell scrolls. (#1377)

* [Spells] Adds a rule to allow right-click memorize from spell scrolls.

* Typo.
This commit is contained in:
Alex
2021-06-11 14:41:08 -04:00
committed by GitHub
parent ebdb8e5d90
commit d54cd08560
5 changed files with 90 additions and 2 deletions
+6 -1
View File
@@ -8876,7 +8876,12 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
}
else if (item->ItemType == EQ::item::ItemTypeSpell)
{
return;
if (RuleB(Spells, AllowSpellMemorizeFromItem)) {
DeleteItemInInventory(slot_id, 1, true);
MemorizeSpellFromItem(item->ID);
} else {
return;
}
}
else if ((item->Click.Type == EQ::item::ItemEffectClick) || (item->Click.Type == EQ::item::ItemEffectExpendable) || (item->Click.Type == EQ::item::ItemEffectEquipClick) || (item->Click.Type == EQ::item::ItemEffectClick2))
{