I'm assuming that $client->SummonItem() calls the actual server code and is not script-defined elsewhere.
This is the server code:
https://github.com/EQEmu/Server/blob...ntory.cpp#L203
I added the lore checks some time ago..but, have not incorporated any validity checks, as yet, into the existing code..so, for now, you'll
have to manually check them in scripts.
(I will add validation in the rework..probably with a status override as well.)
Btw, thanks for bringing this up! I just found a memory leak that I created!
</facepalm>
EDIT: I took a closer look at the code..so, no memory leak. But, it could still use some tweaking.