Jump to content

[patch][6333] Fix A Bug Of Area Aura


Guest megamage

Recommended Posts

The area aura function did not consider castitem. And we no longer need it because aura type is checked in createaura()

Index: SpellEffects.cpp
===================================================================
--- SpellEffects.cpp        (revision 6326)
+++ SpellEffects.cpp        (working copy)
@@ -95,7 +95,7 @@
        &Spell::EffectTriggerMissileSpell,                                            // 32 SPELL_EFFECT_TRIGGER_MISSILE
        &Spell::EffectOpenLock,                                                                 // 33 SPELL_EFFECT_OPEN_LOCK
        &Spell::EffectSummonChangeItem,                                                 // 34 SPELL_EFFECT_SUMMON_CHANGE_ITEM
-        &Spell::EffectApplyAreaAura,                                                        // 35 SPELL_EFFECT_APPLY_AREA_AURA_PARTY
+        &Spell::EffectApplyAura,                                                                // 35 SPELL_EFFECT_APPLY_AREA_AURA_PARTY
        &Spell::EffectLearnSpell,                                                             // 36 SPELL_EFFECT_LEARN_SPELL
        &Spell::EffectUnused,                                                                     // 37 SPELL_EFFECT_SPELL_DEFENSE                        one spell: SPELLDEFENSE (DND)
        &Spell::EffectDispel,                                                                     // 38 SPELL_EFFECT_DISPEL
@@ -188,8 +188,8 @@
        &Spell::EffectReduceThreatPercent,                                            //125 SPELL_EFFECT_REDUCE_THREAT_PERCENT
        &Spell::EffectStealBeneficialBuff,                                            //126 SPELL_EFFECT_STEAL_BENEFICIAL_BUFF        spell steal effect?
        &Spell::EffectProspecting,                                                            //127 SPELL_EFFECT_PROSPECTING                            Prospecting spell
-        &Spell::EffectApplyAreaAura,                                                        //128 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND
-        &Spell::EffectApplyAreaAura,                                                        //129 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY
+        &Spell::EffectApplyAura,                                                                //128 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND
+        &Spell::EffectApplyAura,                                                                //129 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY
        &Spell::EffectNULL,                                                                         //130 SPELL_EFFECT_REDIRECT_THREAT
        &Spell::EffectUnused,                                                                     //131 SPELL_EFFECT_131                                            used in some test spells
        &Spell::EffectNULL,                                                                         //132 SPELL_EFFECT_PLAY_MUSIC                             sound id in misc value
@@ -2987,7 +2990,7 @@
        }
}

-void Spell::EffectApplyAreaAura(uint32 i)
+/*void Spell::EffectApplyAreaAura(uint32 i)
{
        if(!unitTarget)
                return;
@@ -2996,7 +2999,7 @@

        AreaAura* Aur = new AreaAura(m_spellInfo, i, &m_currentBasePoints[i], unitTarget, m_caster);
        unitTarget->AddAura(Aur);
-}
+}*/

void Spell::EffectSummon(uint32 i)
{

Link to comment
Share on other sites

It should be AreaAura(m_spellInfo, i, &m_currentBasePoints, unitTarget, m_caster, m_castitem);

It now is AreaAura(m_spellInfo, i, &m_currentBasePoints, unitTarget, m_caster);

The bug is: if you equip a item which gives you a areaaura, you unequip it, the aura will not disappear.

Sorry I did not say clearly.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use