mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Fix damage done by poison proc changes
spell procs were not firing due to bad conditional.
This commit is contained in:
parent
769df9ce7b
commit
2a8ab28551
@ -4075,7 +4075,7 @@ void Mob::TrySpellProc(const EQEmu::ItemInstance *inst, const EQEmu::ItemData *w
|
|||||||
if (IsPet() && hand != EQEmu::invslot::slotPrimary) //Pets can only proc spell procs from their primay hand (ie; beastlord pets)
|
if (IsPet() && hand != EQEmu::invslot::slotPrimary) //Pets can only proc spell procs from their primay hand (ie; beastlord pets)
|
||||||
continue; // If pets ever can proc from off hand, this will need to change
|
continue; // If pets ever can proc from off hand, this will need to change
|
||||||
|
|
||||||
if (!weapon || (SpellProcs[i].base_spellID == POISON_PROC && weapon->ItemType != EQEmu::item::ItemType1HPiercing))
|
if (SpellProcs[i].base_spellID == POISON_PROC && weapon != nullptr && weapon->ItemType != EQEmu::item::ItemType1HPiercing)
|
||||||
continue; // Old school poison will only proc with 1HP equipped.
|
continue; // Old school poison will only proc with 1HP equipped.
|
||||||
|
|
||||||
// Not ranged
|
// Not ranged
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user