Core/Spell: Prevent NO_TARGET auras from actually selecting target

This commit is contained in:
ariel-
2016-12-29 03:34:54 -03:00
committed by roc13x
parent 0814834492
commit 71e3339636

View File

@@ -645,7 +645,9 @@ uint32 SpellEffectInfo::GetProvidedTargetMask() const
uint32 SpellEffectInfo::GetMissingTargetMask(bool srcSet /*= false*/, bool dstSet /*= false*/, uint32 mask /*=0*/) const
{
uint32 effImplicitTargetMask = GetTargetFlagMask(GetUsedTargetObjectType());
uint32 providedTargetMask = GetTargetFlagMask(TargetA.GetObjectType()) | GetTargetFlagMask(TargetB.GetObjectType()) | mask;
uint32 providedTargetMask = GetProvidedTargetMask() | mask;
if (!providedTargetMask) // no targets to select
return 0;
// remove all flags covered by effect target mask
if (providedTargetMask & TARGET_FLAG_UNIT_MASK)