Code:
if (foundslot == MainPrimary) {
if (item2->Proc.Effect != 0 && CastToMob()->GetLevel() > item2->Proc.Level) {
CastToMob()->AddProcToWeapon(item2->Proc.Effect, true);
}
This appears to be working. Is this safe or is there a better way of doing it?