mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Fixed Spell::GetUnitTargetCountForEffect incorrectly counting missed targets instead of hit targets
This commit is contained in:
@@ -2334,7 +2334,7 @@ int64 Spell::GetUnitTargetCountForEffect(SpellEffIndex effect) const
|
||||
{
|
||||
return std::count_if(m_UniqueTargetInfo.begin(), m_UniqueTargetInfo.end(), [effect](TargetInfo const& targetInfo)
|
||||
{
|
||||
return targetInfo.MissCondition == SPELL_MISS_MISS && targetInfo.EffectMask & (1 << effect);
|
||||
return targetInfo.MissCondition == SPELL_MISS_NONE && targetInfo.EffectMask & (1 << effect);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user