Core/Spell: Prevent NO_TARGET auras from actually selecting target

This commit is contained in:
ariel- authored and roc13x committed 2017-05-04 03:51:44 +01:00
1 parent 0814834492
commit 71e3339636
1 file changed
+3 -1
+3 -1
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)