Jump to content

Recommended Posts

  • 39 years later...
Posted

Patch By thenecromancer

[HIGHLIGHT=diff]

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp

index 6cbb6cb..92e2d8c 100644

--- a/src/game/SpellEffects.cpp

+++ b/src/game/SpellEffects.cpp

@@ -1261,6 +1261,35 @@ void Spell::EffectDummy(uint32 i)

m_damage+= uint32(damage * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100);

return;

}

+ // Overpower

+ if(m_spellInfo->SpellFamilyFlags & 0x4)

+ {

+ // Must be casting target

+ if (!unitTarget->IsNonMeleeSpellCasted(false))

+ return;

+ // Find Unrelenting Assault

+ Unit::AuraList const& modifierAuras = m_caster->GetAurasByType(SPELL_AURA_ADD_FLAT_MODIFIER);

+ for(Unit::AuraList::const_iterator itr = modifierAuras.begin(); itr != modifierAuras.end(); ++itr)

+ {

+ if((*itr)->GetSpellProto()->SpellFamilyName==SPELLFAMILY_WARRIOR && (*itr)->GetSpellProto()->SpellIconID == 2775)

+ {

+ switch ((*itr)->GetSpellProto()->Id)

+ {

+ // Unrelenting Assault, rank 1

+ case 46859:

+ m_caster->CastSpell(unitTarget,64849,true,0,(*itr));

+ break;

+ // Unrelenting Assault, rank 2

+ case 46860:

+ m_caster->CastSpell(unitTarget,64850,true,0,(*itr));

+ break;

+ default:

+ break;

+ }

+ }

+ }

+ return;

+ }

switch(m_spellInfo->Id)

{

// Warrior's Wrath[/HIGHLIGHT]

p.s I bad speak English:confused:

Commit:

http://bitbucket.org/KingPin/trinitycore2/changeset/b80507dc7ecb/

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