Merge pull request #9010 from Souler/fix_dispel_effects
[4.3.4] Spells: Dispel effects can always be casted
This commit is contained in:
@@ -5068,6 +5068,8 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Updated 4.3.4. Dispel effects can always be cast (even when there's nothing to dispel).
|
||||||
|
/*
|
||||||
if (!hasNonDispelEffect && !hasDispellableAura && dispelMask && !IsTriggered())
|
if (!hasNonDispelEffect && !hasDispellableAura && dispelMask && !IsTriggered())
|
||||||
{
|
{
|
||||||
if (Unit* target = m_targets.GetUnitTarget())
|
if (Unit* target = m_targets.GetUnitTarget())
|
||||||
@@ -5078,6 +5080,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
return SPELL_FAILED_NOTHING_TO_DISPEL;
|
return SPELL_FAILED_NOTHING_TO_DISPEL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user