mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +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:
@@ -668,7 +668,7 @@ public:
|
||||
|
||||
bool CheckProc(ProcEventInfo& eventInfo)
|
||||
{
|
||||
SpellInfo const* spellInfo = eventInfo.GetDamageInfo()->GetSpellInfo();
|
||||
SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
|
||||
if (!spellInfo || !spellInfo->HasEffect(SPELL_EFFECT_HEAL))
|
||||
return false;
|
||||
|
||||
@@ -2868,7 +2868,7 @@ public:
|
||||
/*if (!GetTarget()->FindMap() || GetTarget()->FindMap()->IsBattlegroundOrArena())
|
||||
return false;*/
|
||||
|
||||
if (const SpellInfo* procSpell = eventInfo.GetDamageInfo()->GetSpellInfo())
|
||||
if (const SpellInfo* procSpell = eventInfo.GetSpellInfo())
|
||||
if (!eventInfo.GetDamageInfo()->GetDamage())
|
||||
{
|
||||
if (procSpell->SpellFamilyName == SPELLFAMILY_WARRIOR)
|
||||
|
||||
Reference in New Issue
Block a user