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:
hondacrx
2022-01-07 17:03:52 -05:00
parent 3bd134d29e
commit 1a09bfc275
+1 -1
View File
@@ -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)