Jump to content

[Fix] Glyph of Devastate


Guest ankso

Recommended Posts

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

Fixes Glyph of devastate

For which repository revision was the patch created?

9933

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

Don't find any

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

me, Ankso

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 0a04db0..0d0a3f4 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5214,9 +5214,14 @@ void Spell::EffectWeaponDmg(SpellEffectIndex eff_idx)
                if (stack)
                    spell_bonus += stack * CalculateDamage(EFFECT_INDEX_2, unitTarget);
                if (!stack || stack < spellInfo->StackAmount)
+         {
                    // Devastate causing Sunder Armor Effect
                    // and no need to cast over max stack amount
                    m_caster->CastSpell(unitTarget, 58567, true);
+             //Glyph of Devastate
+             if (Aura *aura = m_caster->GetDummyAura(58388))
+                 m_caster->CastSpell (unitTarget, 58567, true);
+         }
            }
            break;
        }

My first patch, I don't know if this is the correct form to fix this, but it works ^^

Link to comment
Share on other sites

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