[Bug Fix] NPCs were getting weapon proc added twice (#2277)

This commit is contained in:
Paul Coene 2022-07-06 22:59:46 -04:00 committed by GitHub
parent a444857b46
commit 5c105d7408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,8 +473,6 @@ void NPC::AddLootDrop(
}
if (foundslot == EQ::invslot::slotPrimary) {
if (item2->Proc.Effect != 0)
CastToMob()->AddProcToWeapon(item2->Proc.Effect, true);
eslot = EQ::textures::weaponPrimary;
if (item2->Damage > 0) {
@ -489,8 +487,6 @@ void NPC::AddLootDrop(
&& (GetOwner() != nullptr || (CanThisClassDualWield() && zone->random.Roll(NPC_DW_CHANCE)) || (item2->Damage==0)) &&
(item2->IsType1HWeapon() || item2->ItemType == EQ::item::ItemTypeShield || item2->ItemType == EQ::item::ItemTypeLight))
{
if (item2->Proc.Effect!=0)
CastToMob()->AddProcToWeapon(item2->Proc.Effect, true);
eslot = EQ::textures::weaponSecondary;
if (item2->Damage > 0)