Jump to content

[fix]Deadly Precision(Nevermelting Ice Crystal spell)


Guest AuntieMangos

Recommended Posts

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

adds correct triggered spell & stack amount & proc flag

For which repository revision was the patch created?

9292

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?12435-[9283]-Nevermelting-Ice-Crystal

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

me

version1:

         diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index ea37505..2b68cc0 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2314,6 +2314,13 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
              // Reindeer Transformation
              m_target->CastSpell(m_target, 25860, true, NULL, this);
            return;
+        
+          case 71563:                // Deadly Precision
+          {
+            for (int i = 0; i < 5; ++i)
+              m_target->CastSpell(m_target, 71564, true, NULL, this);
+            return;
+          }
        }
        break;
      case SPELLFAMILY_WARRIOR:



version2:

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index d1cdab6..6e19396 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2581,6 +2581,8 @@ void Spell::cast(bool skipCheck)
        AddPrecastSpell(23230);           // Blood Fury - Healing Reduction
      else if(m_spellInfo->Id == 20594)        // Stoneskin
        AddTriggeredSpell(65116);          // Stoneskin - armor 10% for 8 sec
+      else if(m_spellInfo->Id == 71563)        // Deadly Precision
+        AddTriggeredSpell(71564);  
      break;
    }
    case SPELLFAMILY_MAGE:
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 2b68cc0..2cc5280 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -477,6 +477,8 @@ m_isRemovedOnShapeLost(true), m_in_use(0), m_deleted(false)
    if (Aura* glyph = caster->GetDummyAura(56371))
      m_stackAmount = glyph->GetModifier()->m_amount;
  }
+  else if(m_spellProto->Id == 71564)            // Deadly Precision
+    m_stackAmount = m_spellProto->StackAmount;
}

Aura::~Aura()


sql:

DELETE FROM spell_proc_event WHERE entry = 71564;
INSERT INTO spell_proc_event VALUES
(71564, 0x00, 0, 0, 0, 0, 0x00014010, 0x0000002, 0, 0, 0);

Link to comment
Share on other sites

  • 40 years later...
  • 1 year 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