Core/Spells: spell crit supression will no longer increase the crit chance against lower level targets

This commit is contained in:
Ovahlord committed 2023-02-06 10:03:46 +01:00
1 parent e5a9630b49
commit 8821936ec6
1 file changed
+2 -1
+2 -1
View File
@@ -6823,7 +6823,8 @@ float Unit::SpellCritChanceTaken(Unit const* caster, SpellInfo const* spellInfo,
if (GetTypeId() == TYPEID_UNIT)
{
int32 const levelDiff = static_cast<int32>(getLevelForTarget(caster)) - caster->getLevel();
crit_chance -= levelDiff * 0.7f;
if (levelDiff > 0)
crit_chance -= levelDiff * 0.7f;
}
}
break;