diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2016-11-18 03:11:35 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-11-18 03:11:35 -0300 |
| commit | 2c8a6fb771a42169a1817149ab0a2a19912ebea7 (patch) | |
| tree | 54367d3717f4a2585fae673f5b1908f0b5647ca2 /src | |
| parent | e7ccd8ea3fccad92af3553f544aad49be5d1a9ed (diff) | |
Core/Spell: Fixed Drain Soul incorrectly downscaling ranks when targetting lower level enemies
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index d2edbbc4d4f..c0fbdf51889 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -3343,8 +3343,16 @@ bool SpellInfo::_IsPositiveEffect(uint8 effIndex, bool deep) const // Special case: effects which determine positivity of whole spell for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) { - if (Effects[i].IsAura() && Effects[i].ApplyAuraName == SPELL_AURA_MOD_STEALTH) - return true; + if (Effects[i].IsAura()) + { + switch (Effects[i].ApplyAuraName) + { + case SPELL_AURA_MOD_STEALTH: + return true; + case SPELL_AURA_CHANNEL_DEATH_ITEM: + return false; + } + } } switch (Effects[effIndex].Effect) |
