diff options
author | megamage <none@none> | 2008-12-17 20:07:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-17 20:07:25 -0600 |
commit | ac5bf63acdea0f1bc10700e6735cbcb8caf5def2 (patch) | |
tree | 9cebb0b5a6b8cbfda41fbacd74472e25f71ac378 /src/game/SpellEffects.cpp | |
parent | 5244d4986ae44253fe3240740d81e0c68fe9c37a (diff) |
*Fix misdirection.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 66d810ce681..b5657f9bcba 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -191,7 +191,7 @@ pEffect SpellEffects[TOTAL_SPELL_EFFECTS]= &Spell::EffectProspecting, //127 SPELL_EFFECT_PROSPECTING Prospecting spell &Spell::EffectApplyAreaAura, //128 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND &Spell::EffectApplyAreaAura, //129 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY - &Spell::EffectNULL, //130 SPELL_EFFECT_REDIRECT_THREAT + &Spell::EffectRedirectThreat, //130 SPELL_EFFECT_REDIRECT_THREAT &Spell::EffectUnused, //131 SPELL_EFFECT_131 used in some test spells &Spell::EffectNULL, //132 SPELL_EFFECT_PLAY_MUSIC sound id in misc value &Spell::EffectUnlearnSpecialization, //133 SPELL_EFFECT_UNLEARN_SPECIALIZATION unlearn profession specialization @@ -6296,3 +6296,9 @@ void Spell::EffectQuestFail(uint32 i) ((Player*)unitTarget)->FailQuest(m_spellInfo->EffectMiscValue[i]); } + +void Spell::EffectRedirectThreat(uint32 /*i*/) +{ + if(unitTarget) + m_caster->SetReducedThreatPercent((uint32)damage, unitTarget->GetGUID()); +}
\ No newline at end of file |