mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-22 18:52:26 +00:00
[Bug Fix] NPCs were getting weapon proc added twice (#2277)
This commit is contained in:
parent
a444857b46
commit
5c105d7408
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user