Core/Spells: handle SPELL_AURA_MOD_DEBUFF_RESISTANCE only for auras. fixes sacred cleansing causing the whole spell to be resisted.
This commit is contained in:
1 parent
b43fa6f743
commit
5daa540d3a
2 files changed
+27
-8
No files matched your search
@@ -2465,12 +2465,12 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit* victim, SpellInfo const* spell)
|
||||
// Chance resist debuff
|
||||
if (!spell->IsPositive())
|
||||
{
|
||||
bool bNegativeAura = false;
|
||||
bool bNegativeAura = true;
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
{
|
||||
if (spell->Effects[i].ApplyAuraName != 0)
|
||||
if (spell->Effects[i].ApplyAuraName == 0)
|
||||
{
|
||||
bNegativeAura = true;
|
||||
bNegativeAura = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user