Added missing null checks for DamageInfo struct

Misc spell fixes
This commit is contained in:
hondacrx
2017-09-06 11:24:12 -04:00
parent 443c00bd28
commit d578144150
9 changed files with 78 additions and 30 deletions
+2 -2
View File
@@ -391,7 +391,7 @@ namespace Scripts.Spells.Generic
bool CheckProc(ProcEventInfo eventInfo)
{
if (eventInfo.GetDamageInfo().GetSpellInfo() != null) // eventInfo.GetSpellInfo()
if (eventInfo.GetSpellInfo() == null)
return false;
// find Mage Armor
@@ -1705,7 +1705,7 @@ namespace Scripts.Spells.Generic
bool CheckProc(ProcEventInfo eventInfo)
{
if (eventInfo.GetDamageInfo().GetSpellInfo() != null) // eventInfo.GetSpellInfo()
if (eventInfo.GetSpellInfo() == null)
return false;
if (SharedConst.GetFirstSchoolInMask(eventInfo.GetSchoolMask()) == SpellSchools.Normal)