diff options
author | p0wer <none@none> | 2010-03-04 17:49:10 -0600 |
---|---|---|
committer | p0wer <none@none> | 2010-03-04 17:49:10 -0600 |
commit | 4b5a3f41aba0d25f07206ee9a421b7777c9a8c47 (patch) | |
tree | 1c165f9e0aa9c57eda729d0cfc34d61c55685eca /src/game/SpellAuras.cpp | |
parent | 7afa2ad651ab8e5d454d16fa0ead57baeaca6cb4 (diff) |
Fix Shadow Affinity. Patch by Ouden. Fixes issue #988.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 750cabdb28f..b050208d5a9 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1136,9 +1136,9 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, if (removeMode == AURA_REMOVE_BY_ENEMY_SPELL && (GetSpellProto()->SpellFamilyFlags[0] & 0x00008000 || GetSpellProto()->SpellFamilyFlags[1] & 0x00000400)) { // Shadow Affinity - if (AuraEffect const * aurEff = target->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 178, 1)) + if (AuraEffect const * aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 178, 1)) { - int32 basepoints0 = aurEff->GetAmount() * target->GetCreateMana() / 100; + int32 basepoints0 = aurEff->GetAmount() * caster->GetCreateMana() / 100; caster->CastCustomSpell(caster, 64103, &basepoints0, NULL, NULL, true, NULL, GetEffect(0)); } } |