Remove Frost Nova autoremoval hack. (#128)
-This may affect other spells too.
This commit is contained in:
parent
902fa5530a
commit
cbf5d84b94
@ -628,6 +628,10 @@ bool Aura::isAffectedOnSpell(SpellEntry const* spell) const
|
|||||||
|
|
||||||
bool Aura::CanProcFrom(SpellEntry const* spell, uint32 EventProcEx, uint32 procEx, bool active, bool useClassMask) const
|
bool Aura::CanProcFrom(SpellEntry const* spell, uint32 EventProcEx, uint32 procEx, bool active, bool useClassMask) const
|
||||||
{
|
{
|
||||||
|
// Aura cannot proc from itself unless it's periodic
|
||||||
|
if (GetId() == spell->Id && !IsPeriodic())
|
||||||
|
{ return false; }
|
||||||
|
|
||||||
// Check EffectClassMask (in pre-3.x stored in spell_affect in fact)
|
// Check EffectClassMask (in pre-3.x stored in spell_affect in fact)
|
||||||
ClassFamilyMask mask = sSpellMgr.GetSpellAffectMask(GetId(), GetEffIndex());
|
ClassFamilyMask mask = sSpellMgr.GetSpellAffectMask(GetId(), GetEffIndex());
|
||||||
|
|
||||||
|
@ -237,11 +237,6 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit* pVictim, SpellAuraHolder* holder, S
|
|||||||
{
|
{
|
||||||
SpellEntry const* spellProto = holder->GetSpellProto();
|
SpellEntry const* spellProto = holder->GetSpellProto();
|
||||||
|
|
||||||
// early check to prevent FrostNova damage to remove Aura 26
|
|
||||||
if (procSpell && (procSpell->Id == spellProto->Id) && (spellProto->SpellIconID == 193) &&
|
|
||||||
(spellProto->SpellVisual == 17) && (spellProto->SpellFamilyName == SPELLFAMILY_MAGE))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Get proc Event Entry
|
// Get proc Event Entry
|
||||||
spellProcEvent = sSpellMgr.GetSpellProcEvent(spellProto->Id);
|
spellProcEvent = sSpellMgr.GetSpellProcEvent(spellProto->Id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user