mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 15:16:24 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user