Jump to content

[fix]Lichborne


Recommended Posts

Posted

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

makes caster considered undead (example : death coil heal on self for death knight)

For which repository revision was the patch created?

9006

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

haven't seen any

Who has been writing this patch? Please include either forum user names or email addresses.

me

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 3a62eb6..8c5cecc 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3023,6 +3023,8 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
        case FORM_SPIRITOFREDEMPTION:
            modelid = 16031;
            break;
+        case FORM_UNDEAD:
+            break;
        default:
            sLog.outError("Auras: Unknown Shapeshift Type: %u, SpellId %u.", m_modifier.m_miscvalue, GetId());
    }
@@ -6192,6 +6194,13 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
        }
        case SPELLFAMILY_DEATHKNIGHT:
        {
+            // Lichborne undead form
+            if (GetId() == 49039)
+            {
+                spellId1 = 50397;
+                break;
+            }
+
            if (GetSpellSpecific(m_spellProto->Id) != SPELL_PRESENCE)
                return;

diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index bc98152..442b769 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1693,6 +1693,10 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
                // Unholy Presence and Unholy Presence (triggered)
                if( spellInfo_1->SpellIconID == 2633 && spellInfo_2->SpellIconID == 2633 )
                    return false;
+
+                // Lichborne and Lichborne triggered
+                if( spellInfo_1->SpellIconID == 61 && spellInfo_2->SpellIconID == 61 )
+                    return false;
            }
            break;
        default:
diff --git a/src/game/Unit.h b/src/game/Unit.h
index 3f94258..1835166 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -182,6 +182,7 @@ enum ShapeshiftForm
    FORM_TEST               = 0x14,
    FORM_ZOMBIE             = 0x15,
    FORM_METAMORPHOSIS      = 0x16,
+    FORM_UNDEAD             = 0x19,
    FORM_FLIGHT_EPIC        = 0x1B,
    FORM_SHADOW             = 0x1C,
    FORM_FLIGHT             = 0x1D,

used boosts because triggered spell has different duration

  • 1 month later...
×
×
  • 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