Jump to content

[9273][fix]Shadowmourne item spell


Recommended Posts

Posted

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

fixes Shadowmourne proc spell

For which repository revision was the patch created?

9263

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/Unit.cpp b/src/game/Unit.cpp
index 020e89f..80957e5 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5296,6 +5296,23 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                case 63320:
                    triggered_spell_id = 63321;
                    break;
+                // Item - Shadowmourne Legendary
+                case 71903:
+                {
+                    if (!roll_chance_i(triggerAmount))
+                        return false;
+
+                    Aura *aur = GetAura(71905, 0);
+                    if (aur && aur->GetStackAmount() > 8)    // remove all stack on 10
+                    {
+                        RemoveAurasDueToSpell(71905);
+                        CastSpell(this, 71904, true);
+                        return true;
+                    }
+                    else
+                        triggered_spell_id = 71905;
+                    break;
+                }
            }
            break;
        }


diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 188aba4..96d8b53 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -323,6 +323,7 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
                    case 45150:                             // Meteor Slash
                    case 64422: case 64688:                 // Sonic Screech
                    case 70492: case 72505:                 // Ooze Eruption
+                    case 71904:                                // Chaos Bane
                    case 72624: case 72625:                 // Ooze Eruption
                    {
                        uint32 count = 0;

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