mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 12:42:25 +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 (foundslot == EQ::invslot::slotPrimary) {
|
||||||
if (item2->Proc.Effect != 0)
|
|
||||||
CastToMob()->AddProcToWeapon(item2->Proc.Effect, true);
|
|
||||||
|
|
||||||
eslot = EQ::textures::weaponPrimary;
|
eslot = EQ::textures::weaponPrimary;
|
||||||
if (item2->Damage > 0) {
|
if (item2->Damage > 0) {
|
||||||
@ -489,8 +487,6 @@ void NPC::AddLootDrop(
|
|||||||
&& (GetOwner() != nullptr || (CanThisClassDualWield() && zone->random.Roll(NPC_DW_CHANCE)) || (item2->Damage==0)) &&
|
&& (GetOwner() != nullptr || (CanThisClassDualWield() && zone->random.Roll(NPC_DW_CHANCE)) || (item2->Damage==0)) &&
|
||||||
(item2->IsType1HWeapon() || item2->ItemType == EQ::item::ItemTypeShield || item2->ItemType == EQ::item::ItemTypeLight))
|
(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;
|
eslot = EQ::textures::weaponSecondary;
|
||||||
if (item2->Damage > 0)
|
if (item2->Damage > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user