Core/Spells: corrected implementation of SPELL_ATTR3_COMPLETELY_BLOCKED

* it's not a bug, it's a feature :)
This commit is contained in:
Ovahlord committed 2022-09-13 18:19:05 +02:00
1 parent 5253b7e677
commit 3057924db2
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -1086,8 +1086,6 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage* damageInfo, int32 dama
uint32 value = victim->GetBlockPercent();
if (victim->IsBlockCritical())
value *= 2; // double blocked percent
if (spellInfo->HasAttribute(SPELL_ATTR3_COMPLETELY_BLOCKED))
value = 100;
damageInfo->blocked = CalculatePct(damage, value);
if (damage <= int32(damageInfo->blocked))