fix(Core/Conditions): Conditions not working for area auras (#8648)

* Core/Conditions: Fixed conditions not working for area auras

Cherry Pick of TC Commit:
https://github.com/TrinityCore/TrinityCore/commit/8693ee56955ce4d31e9e69f3971f52e250c1280c
This commit is contained in:
acidmanifesto
2021-10-21 14:55:41 -04:00
committed by GitHub
parent db0c27fe43
commit ad73b564bc
@@ -1530,6 +1530,20 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond)
break;
}
switch (spellInfo->Effects[i].Effect)
{
case SPELL_EFFECT_PERSISTENT_AREA_AURA:
case SPELL_EFFECT_APPLY_AREA_AURA_PARTY:
case SPELL_EFFECT_APPLY_AREA_AURA_RAID:
case SPELL_EFFECT_APPLY_AREA_AURA_FRIEND:
case SPELL_EFFECT_APPLY_AREA_AURA_ENEMY:
case SPELL_EFFECT_APPLY_AREA_AURA_PET:
case SPELL_EFFECT_APPLY_AREA_AURA_OWNER:
continue;
default:
break;
}
// Xinef: chain targets are treated as area targets! Apply conditions!
if (spellInfo->Effects[i].ChainTarget > 1)
continue;