Core/Spells: Fixed Spell::GetUnitTargetCountForEffect incorrectly counting missed targets instead of hit targets
Port From (https://github.com/TrinityCore/TrinityCore/commit/570e882d024991b44ccfd2fb2891a25ee054587b)
This commit is contained in:
@@ -1866,7 +1866,7 @@ namespace Game.Spells
|
|||||||
|
|
||||||
public long GetUnitTargetCountForEffect(uint effect)
|
public long GetUnitTargetCountForEffect(uint effect)
|
||||||
{
|
{
|
||||||
return m_UniqueTargetInfo.Count(targetInfo => targetInfo.MissCondition == SpellMissInfo.Miss && (targetInfo.EffectMask & (1 << (int)effect)) != 0);
|
return m_UniqueTargetInfo.Count(targetInfo => targetInfo.MissCondition == SpellMissInfo.None && (targetInfo.EffectMask & (1 << (int)effect)) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public long GetGameObjectTargetCountForEffect(uint effect)
|
public long GetGameObjectTargetCountForEffect(uint effect)
|
||||||
|
|||||||
Reference in New Issue
Block a user