mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Spell: Fixed Drain Soul incorrectly downscaling ranks when targetting lower level enemies
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user