diff options
| author | thenecromancer <none@none> | 2009-06-30 10:26:27 +0200 |
|---|---|---|
| committer | thenecromancer <none@none> | 2009-06-30 10:26:27 +0200 |
| commit | 44815a83c492452e9ed99e5146878ff676bd583b (patch) | |
| tree | 23811b8a2e2e9a0f8655bc1d2b9b50079db8f432 /src | |
| parent | 966a5374cc5c423bdbc4527315bb48c39684b1d7 (diff) | |
*Fix Unrelenting Assault
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0f25602fb21..6c261c586c3 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1397,6 +1397,35 @@ void Spell::EffectDummy(uint32 i) m_damage+= uint32(damage * m_caster->GetTotalAttackPowerValue(BASE_ATTACK) / 100); return; } + // Overpower + if(m_spellInfo->SpellFamilyFlags[0] & 0x4) + { + // Must be casting target + if (!unitTarget->IsNonMeleeSpellCasted(false)) + return; + // Find Unrelenting Assault + Unit::AuraEffectList const& modifierAuras = m_caster->GetAurasByType(SPELL_AURA_ADD_FLAT_MODIFIER); + for(Unit::AuraEffectList::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 |
