Merge pull request #930 from noudess/patch-2

Fix damage done by poison proc changes
This commit is contained in:
Michael Cook (mackal) 2019-11-02 15:54:09 -04:00 committed by GitHub
commit dff23793c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4075,7 +4075,8 @@ 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)
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 || weapon->ItemType != EQEmu::item::ItemType1HPiercing))
continue; // Old school poison will only proc with 1HP equipped.
// Not ranged