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

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

Cherry Pick of TC Commit:
8693ee5695
This commit is contained in:
acidmanifesto
2021-10-21 14:55:41 -04:00
committed by GitHub
parent db0c27fe43
commit ad73b564bc

View File

@@ -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;