Jump to content

[Fix][8086] Recently Bandaged


Auntie Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

It makes spell Recently bandage (11196) prevent you from using bandages while active.

For which repository revision was the patch created?

8071

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

http://getmangos.eu/community/showthread.php?p=76735

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 5808127..9496143 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2183,6 +2183,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
        {
            switch(GetId())
            {
+                // Recently Bandaged
+                case 11196:
+                    m_target->ApplySpellImmune(GetId(), IMMUNITY_MECHANIC, GetMiscValue(), apply);
+                    return;
                // Unstable Power
                case 24658:
                {
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index d40864c..61253c0 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -301,6 +301,7 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
    {
        case 28441:                                         // not positive dummy spell
        case 37675:                                         // Chaos Blast
+        case 11196:                                         // Recently Bandaged
            return false;
    }

Link to comment
Share on other sites

  • 39 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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