diff options
author | QAston <none@none> | 2009-08-28 21:18:03 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-28 21:18:03 +0200 |
commit | 3d9326c4b7ec086790d0476f9864cd7d201e9495 (patch) | |
tree | 363b0e2eab8982bf52f074060f9e3a8f9f67800d /src | |
parent | b6a9c84aa0f0a006f4de355b77bb9858b7593956 (diff) |
*Add 3.3% spellpower coeff to Thorns.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 4 | ||||
-rw-r--r-- | src/game/Unit.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 2040722c17e..22c540ef9db 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1423,6 +1423,10 @@ void AuraEffect::HandleAuraEffectSpecificMods(bool apply, bool Real, bool change // Innervate else if (m_spellProto->Id == 29166 && GetAuraName() == SPELL_AURA_PERIODIC_ENERGIZE) m_amount = m_target->GetCreatePowers(POWER_MANA) * m_amount / (GetTotalTicks() * 100.0f); + // Thorns + else if (m_spellProto->SpellFamilyFlags[0] & 0x100 && GetAuraName() == SPELL_AURA_DAMAGE_SHIELD) + // 3.3% from sp bonus + DoneActualBenefit = caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellProto)) * 0.033f; break; } case SPELLFAMILY_ROGUE: diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 12166cc917a..e80ccf019f2 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8848,7 +8848,7 @@ Unit* Unit::SelectMagnetTarget(Unit *victim, SpellEntry const *spellInfo) if(Unit* magnet = (*itr)->GetParentAura()->GetUnitSource()) if(magnet->isAlive()) { - (*i)->GetParentAura()->DropAuraCharge(); + (*itr)->GetParentAura()->DropAuraCharge(); return magnet; } } |