Jump to content

[7650][fix] Everlasting Affliction


Recommended Posts

Posted

"2"

- This patch would fix the bug that Everlasting Affliction effindex 0 doesn't work.

"2"

- 7641

"2"

- Didn't find any.

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b3de2d7..53f0392 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4986,6 +4986,20 @@ void Spell::EffectScriptEffect(uint32 effIndex)
                    DoCreateItem( effIndex, itemtype );
                    return;
                }
+                // Everlasting Affliction
+                case 47422:
+                {
+                    Unit::AuraMap& afAuras = unitTarget->GetAuras();
+                    for(Unit::AuraMap::iterator itr = afAuras.begin(); itr != afAuras.end(); ++itr)
+                    {
+                        SpellEntry const *spellInfo = (*itr).second->GetSpellProto();
+                        if(spellInfo->SpellIconID == 313 ||
+                           spellInfo->SpellIconID == 152 ||
+                           spellInfo->SpellIconID == 2039)
+                           (*itr).second->RefreshAura();
+                    }
+                    return;
+                }
            }
            break;
        }

Patchfile

Posted

Ok, finally this is correct.

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b3de2d7..7b7d04d 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4986,6 +4986,18 @@ void Spell::EffectScriptEffect(uint32 effIndex)
                    DoCreateItem( effIndex, itemtype );
                    return;
                }
+                // Everlasting Affliction
+                case 47422:
+                {
+                    Unit::AuraMap& suAuras = unitTarget->GetAuras();
+                    for(Unit::AuraMap::iterator itr = suAuras.begin(); itr != suAuras.end(); ++itr)
+                    {
+                        SpellEntry const *spellInfo = (*itr).second->GetSpellProto();
+                        if(spellInfo->SpellFamilyName == SPELLFAMILY_WARLOCK && spellInfo->SpellFamilyFlags & 0x0000000000000002LL)
+                           (*itr).second->RefreshAura();
+                    }
+                    return;
+                }
            }
            break;
        } 

Patchfile

×
×
  • 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