mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
@@ -1763,7 +1763,7 @@ float Unit::CalculateAverageResistReduction(SpellSchoolMask schoolMask, Unit con
|
||||
victimResistance = std::max(victimResistance, 0.0f);
|
||||
|
||||
// level-based resistance does not apply to binary spells, and cannot be overcome by spell penetration
|
||||
if (!spellInfo->HasAttribute(SPELL_ATTR0_CU_BINARY_SPELL))
|
||||
if (!spellInfo || !spellInfo->HasAttribute(SPELL_ATTR0_CU_BINARY_SPELL))
|
||||
victimResistance += std::max((float(victim->getLevelForTarget(this)) - float(getLevelForTarget(victim))) * 5.0f, 0.0f);
|
||||
|
||||
static uint32 const BOSS_LEVEL = 83;
|
||||
|
||||
Reference in New Issue
Block a user