Misc Fixes

Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
hondacrx
2020-05-08 15:00:56 -04:00
parent 1d23f6bc0e
commit 9f235e1659
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2426,7 +2426,7 @@ namespace Game.Entities
victimResistance = Math.Max(victimResistance, 0.0f);
// level-based resistance does not apply to binary spells, and cannot be overcome by spell penetration
if (!spellInfo.HasAttribute(SpellCustomAttributes.BinarySpell))
if (spellInfo == null || !spellInfo.HasAttribute(SpellCustomAttributes.BinarySpell))
victimResistance += Math.Max((victim.GetLevelForTarget(this) - GetLevelForTarget(victim)) * 5.0f, 0.0f);
uint bossLevel = 83;