Jump to content

xXxRRLxXx

Members
  • Posts

    5
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by xXxRRLxXx

  1. What repair this patch: Apply Debuff "Unrelenting Assault" when Overpower hit a caster (Casting healing or Damage Spell). Reduces 25/50% damage or heal for 6 seconds.

    Autor of this patch: QAston from Trinity

    Unrelenting Assault

    http://www.wowhead.com/?spell=46860

    http://www.wowhead.com/?spell=46859

    diff --git a/src/game/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
    --- a/src/game/SpellAuras.cpp
    +++ b/src/game/SpellAuras.cpp
    @@ -2109,6 +2109,29 @@ void Aura::HandleAuraDummy(bool ap
        // AT APPLY
        if(apply)
        {
    +        // Overpower
    +        if (caster && m_spellProto->SpellFamilyName == SPELLFAMILY_WARRIOR && 
    +            m_spellProto->SpellFamilyFlags[0] & 0x4)
    +        {
    +            // Must be casting target
    +            if (!m_target->IsNonMeleeSpellCasted(false))
    +                return;
    +            if (AuraEffect * aurEff = caster->GetAuraEffect(SPELL_AURA_ADD_FLAT_MODIFIER, SPELLFAMILY_WARRIOR, 2775, 0))
    +            {
    +                switch (aurEff->GetId())
    +                {
    +                    // Unrelenting Assault, rank 1
    +                    case 46859:
    +                        caster->CastSpell(m_target,64849,true,NULL,aurEff);
    +                        break;
    +                    // Unrelenting Assault, rank 2
    +                    case 46860:
    +                        caster->CastSpell(m_target,64850,true,NULL,aurEff);
    +                        break;
    +                }
    +            }
    +            return;
    +        }
            switch(GetId())
            {
    

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