Jump to content

[9538][fix/hack?] Elder Nadox encounter spells


Recommended Posts

Posted

MaNGOS 9527

SD2 1607

UDB 387

1) Spell http://www.wowhead.com/?spell=59465 should fill HP of current target to 100%

2) Spell http://www.wowhead.com/?spell=56151 should trigger on all targets except caster

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 5c62481..92d86b8 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -562,6 +562,14 @@ void Spell::FillTargetMap()
            case TARGET_CASTER_COORDINATES:
                switch(m_spellInfo->EffectImplicitTargetB[i])
                {
+                    case TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER:
+                        SetTargetMap(SpellEffectIndex(i), m_spellInfo->EffectImplicitTargetA[i], tmpUnitMap);
+                        SetTargetMap(SpellEffectIndex(i), m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap);
+                        
+                        // Guardian Aura - Ahn'Kahet
+                        if (m_spellInfo->Id == 56153)
+                            tmpUnitMap.remove(m_caster);
+                        break;
                    case TARGET_ALL_ENEMY_IN_AREA:
                        // Note: this hack with search required until GO casting not implemented
                        // environment damage spells already have around enemies targeting but this not help in case not existed GO casting support
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 336af60..cc52fac 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5602,6 +5602,7 @@ void Aura::HandleAuraModIncreaseHealth(bool apply, bool Real)
        case 50322:                                         // Survival Instincts
        case 54443:                                         // Demonic Empowerment (Voidwalker)
        case 55233:                                         // Vampiric Blood
+        case 59465:                                         // Brood Rage (Ahn'Kahet)
        {
            if(Real)
            {

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