mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(Core/Spells): add several missing null checks for the DamageInfo struct to fix a crash - Part II. (#8376)
This commit is contained in:
@@ -444,7 +444,7 @@ public:
|
||||
|
||||
bool CheckProc(ProcEventInfo& procInfo)
|
||||
{
|
||||
SpellInfo const* spellInfo = procInfo.GetDamageInfo()->GetSpellInfo();
|
||||
SpellInfo const* spellInfo = procInfo.GetSpellInfo();
|
||||
// Xinef: cannot proc from volley damage
|
||||
if (spellInfo && (spellInfo->SpellFamilyFlags[0] & 0x2000) && spellInfo->Effects[EFFECT_0].Effect == SPELL_EFFECT_SCHOOL_DAMAGE)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user